Package: collectd
Version: 4.6.3-1
Severity: normal

Hi,

I'm using this fragment to query my WLAN AP:

<Data "netgear_wg102_traffic">
    Type "if_octets"
    Table true
    Instance "WG102::ssid.dot11bg"
    Values "WG102::wlanInBytesTotal" "WG102::wlanOutBytesTotal"
</Data>

This is translated into this SNMP packet:

30 56
    02 01 01
    04 07 70 72 69 76 61 74 65
    a1 48
        02 04 6c 1b a8 8a
        02 01 00
        02 01 00
        30 3a
            30 11
                06 0d 2b 06 01 04 01 a3 2e 04 03 04 02 01 0a
                05 00
            30 11
                06 0d 2b 06 01 04 01 a3 2e 04 03 04 02 01 0b
                05 00
            30 11
                06 0e 2b 06 01 04 01 a3 2e 04 03 02 02 01 04 01
                05 00

(indentation added to show BER encoding)

The third sequence in the SNMP variable-bindings block has an OID field
that is 14 bytes long (as opposed to the others which use 13 bytes),
however the length field of the surrounding structure claims that the oid
field (with header) followed by the NULL value (since this is a GETNEXT) is
17 bytes long (as the other variable bindings).

Thus, parsing the last variable binding terminates after the NULL tag field
but before the NULL tag's length field (i.e. between the 5 and the 0 at the
end).

Doing an snmpgetnext for these values yields a correct packet:

30 56
    02 01 01
    04 07 70 72 69 76 61 74 65
    a1 48
        02 04 57 87 4b 10
        02 01 00
        02 01 00
        30 3a
            30 11
                06 0d 2b 06 01 04 01 a3 2e 04 03 04 02 01 0a
                05 00
            30 11
                06 0d 2b 06 01 04 01 a3 2e 04 03 04 02 01 0b
                05 00
            30 12
                06 0e 2b 06 01 04 01 a3 2e 04 03 02 02 01 04 01
                05 00

The difference in line 5 can be ignored (this is the request serial
number).

   Simon

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.30-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages collectd depends on:
ii  debconf [debconf-2.0]         1.5.27     Debian configuration management sy
ii  libc6                         2.9-23     GNU C Library: Shared libraries
pn  librrd4                       <none>     (no description available)

Versions of packages collectd recommends:
ii  libcurl3-gnu 7.19.5-1                    Multi-protocol file transfer libra
ii  libdbus-1-3  1.2.16-2                    simple interprocess messaging syst
ii  libhal1      0.5.12~git20090406.46dc48-2 Hardware Abstraction Layer - share
ii  libmysqlclie 5.0.84-1                    MySQL database client library
pn  libopenipmi0 <none>                      (no description available)
pn  liboping0    <none>                      (no description available)
ii  libpcap0.8   1.0.0-2                     system interface for user-level pa
ii  libperl5.10  5.10.0-24                   Shared Perl library
ii  libsensors3  1:2.10.8-1                  library to read temperature/voltag
ii  libsnmp15    5.4.1~dfsg-12               SNMP (Simple Network Management Pr
pn  libupsclient <none>                      (no description available)
pn  libvirt0     <none>                      (no description available)
ii  libxenstore3 3.4.0-2                     Xenstore communications library fo
ii  libxml2      2.7.3.dfsg-2                GNOME XML library
ii  lm-sensors   1:3.1.1-2                   utilities to read temperature/volt
ii  perl         5.10.0-24                   Larry Wall's Practical Extraction 
pn  rrdtool      <none>                      (no description available)

Versions of packages collectd suggests:
ii  apache2-mpm-prefork [httpd-c 2.2.12-1    Apache HTTP Server - traditional n
pn  collectd-dev                 <none>      (no description available)
pn  hddtemp                      <none>      (no description available)
pn  libconfig-general-perl       <none>      (no description available)
ii  libhtml-parser-perl          3.61-1      collection of modules that parse H
pn  libregexp-common-perl        <none>      (no description available)
pn  librrds-perl                 <none>      (no description available)
ii  liburi-perl                  1.37+dfsg-1 Manipulates and accesses URI strin
pn  mbmon                        <none>      (no description available)



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to