[Pkg-nagios-devel] Bug#620965: nagios-plugins-standard: plugin config snmp_procs uses wrong MIB

root jd at onix.de
Tue Apr 5 13:02:09 UTC 2011

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

The snmp_procs command definition uses a wrong MIB for querying the total # of processes.
With "host.hrSystem.hrSystemProcesses" the check_snmp call results in:

/usr/lib/nagios/plugins/check_snmp -H 'voyager' -C 'public' -o host.hrSystem.hrSystemProcesses -w :'400' -c :'600' -l processes
External command error: Bad operator (INTEGER): At line 73 in /usr/share/mibs/ietf/SNMPv2-PDU
MIB search path: /root/.snmp/mibs:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp
Cannot find module (IANA-MAU-MIB): At line 15 in /usr/share/mibs/ietf/MAU-MIB
Did not find 'IANAifMauTypeListBits' in module #-1 (/usr/share/mibs/ietf/MAU-MIB)
Did not find 'IANAifMauMediaAvailable' in module #-1 (/usr/share/mibs/ietf/MAU-MIB)
Did not find 'IANAifMauAutoNegCapBits' in module #-1 (/usr/share/mibs/ietf/MAU-MIB)
Did not find 'IANAifJackType' in module #-1 (/usr/share/mibs/ietf/MAU-MIB)
Undefined OBJECT-GROUP (diffServMIBMultiFieldClfrGroup): At line 2195 in /usr/share/mibs/ietf/IPSEC-SPD-MIB
Undefined OBJECT-GROUP (diffServMultiFieldClfrNextFree): At line 2157 in /usr/share/mibs/ietf/IPSEC-SPD-MIB
Undefined OBJECT-GROUP (diffServMIBMultiFieldClfrGroup): At line 2062 in /usr/share/mibs/ietf/IPSEC-SPD-MIB
Unlinked OID in IPATM-IPMC-MIB: marsMIB ::= { mib-2 57 }
Undefined identifier: mib-2 near line 18 of /usr/share/mibs/ietf/IPATM-IPMC-MIB
Cannot find module (IANA-GMPLS-TC-MIB): At line 26 in /usr/share/mibs/ietf/GMPLS-TE-STD-MIB
Did not find 'IANAGmplsLSPEncodingTypeTC' in module #-1 (/usr/share/mibs/ietf/GMPLS-TE-STD-MIB)
Did not find 'IANAGmplsSwitchingTypeTC' in module #-1 (/usr/share/mibs/ietf/GMPLS-TE-STD-MIB)
Did not find 'IANAGmplsGeneralizedPidTC' in module #-1 (/usr/share/mibs/ietf/GMPLS-TE-STD-MIB)
Did not find 'IANAGmplsAdminStatusInformationTC' in module #-1 (/usr/share/mibs/ietf/GMPLS-TE-STD-MIB)
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: HOST-RESOURCES-MIB::hrSystemProcesses

If substituted with "host.hrSystem.hrSystemProcesses.0" this works flawlessly:

/usr/lib/nagios/plugins/check_snmp -H 'voyager' -C 'public' -o host.hrSystem.hrSystemProcesses.0 -w :'400' -c :'600' -l processes
SNMP OK - processes 211 | processes=211 

-- System Information:
Debian Release: 6.0.1
  APT prefers proposed-updates
  APT policy: (510, 'proposed-updates'), (500, 'stable'), (400, 'testing'), (300, 'unstable')
Architecture: i386 (i686)

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

Versions of packages nagios-plugins-standard depends on:
ii  libc6                    2.11.2-10       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.7-0squeeze2 PostgreSQL C client library
ii  libradiusclient-ng2      0.5.6-1.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.3.dfsg-1~squeeze1 Version of 'host' bundled with BIN
ii  dnsutils         1:9.7.3.dfsg-1~squeeze1 Clients provided with BIND
ii  fping            2.4b2-to-ipv6-16.1      sends ICMP ECHO_REQUEST packets to
ii  host             1:9.7.3.dfsg-1~squeeze1 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-3squeeze2  command-line SMB/CIFS clients for 
ii  snmp             5.4.3~dfsg-2            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