[Pkg-nagios-devel] Bug#609011: nagios-plugins-standard: check_snmp fails to parse SNMP string properly

Thomas tk at arche.mine.nu
Wed Jan 5 12:53:23 UTC 2011


Package: nagios-plugins-standard
Version: 1.4.15-3
Severity: normal


Since version 1.4.15-3, check_snmp fails to recognize/parse strings properply
that are transmitted via SNMP.

My scenario: In the SNMP server, I defined exec commands whose return values are
checked via check_snmp. Example (omitting SNMPv3 authentication arguments):

 /usr/lib/nagios/plugins/check_snmp -H HOST -o
 .1.3.6.1.4.1.2021.8.1.101.11 -c 0 -P 3 -v -r 'FILE_AGE OK'

/usr/bin/snmpget -t 1 -r 5 -m '' -v 3 [authpriv] HOST:161
 .1.3.6.1.4.1.2021.8.1.101.11
 iso.3.6.1.4.1.2021.8.1.101.11 = STRING: "FILE_AGE OK:
 /mnt/backuppc/mount/kontrast-main/latest is 67478 seconds old and 1024 bytes"
SNMP CRITICAL - *67478* | iso.3.6.1.4.1.2021.8.1.101.11=67478

Behind iso.3.6.1.4.1.2021.8.1.101.11, there is the check_file_age plugin.

check_snmp from nagios-plugins-* 1.4.15-2 does it correctly:

iso.3.6.1.4.1.2021.8.1.101.11 = STRING: "FILE_AGE OK:
/mnt/backuppc/mount/kontrast-main/latest is 67666 seconds old and 1024 bytes"
SNMP OK - "FILE_AGE OK: /mnt/backuppc/mount/kontrast-main/latest is 67666 seconds
old and 1024 bytes" | 


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

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

Versions of packages nagios-plugins-standard depends on:
ii  libc6                    2.11.2-7        Embedded GNU C Library: Shared lib
ii  libldap-2.4-2            2.4.23-7        OpenLDAP libraries
ii  libmysqlclient16         5.1.49-3        MySQL database client library
ii  libpq5                   8.4.5-0squeeze2 PostgreSQL C client library
ii  libradiusclient-ng2      0.5.6-1         Enhanced RADIUS client library
ii  nagios-plugins-basic     1.4.15-3        Plugins for the nagios network mon
ii  ucf                      3.0025+nmu1     Update Configuration File: preserv

Versions of packages nagios-plugins-standard recommends:
ii  bind9-host [host]     1:9.7.2.dfsg.P3-1  Version of 'host' bundled with BIN
ii  dnsutils              1:9.7.2.dfsg.P3-1  Clients provided with BIND
ii  fping                 2.4b2-to-ipv6-16.1 sends ICMP ECHO_REQUEST packets to
ii  host                  1:9.7.2.dfsg.P3-1  Transitional package
ii  libnet-snmp-perl      5.2.0-4            Script SNMP connections
ii  qstat                 2.11-3             Command-line tool for querying qua
ii  smbclient             2:3.5.6~dfsg-3     command-line SMB/CIFS clients for 
ii  snmp                  5.4.3~dfsg-1       SNMP (Simple Network Management Pr
ii  whois                 5.0.10             an intelligent whois client

Versions of packages nagios-plugins-standard suggests:
ii  nagios3                       3.2.1-2    A host/service/network monitoring 
ii  postfix                       2.7.1-1    High-performance mail transport ag

-- no debconf information





More information about the Pkg-nagios-devel mailing list