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
--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Hi root,
thanks for taking care and reporting this problem.
Unfortunately I can't reproduce your problem.
On Tuesday, 5. April 2011, root wrote:
> 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
On my host I get:
$ /usr/lib/nagios/plugins/check_snmp -vvv -H '127.0.0.1' -P 2c -C 'foo' -o
host.hrSystem.hrSystemProcesses -w :'400' -c :'600' -l processes
/usr/bin/snmpget -t 1 -r 5 -m ALL -v 2c [authpriv] 127.0.0.1:161
host.hrSystem.hrSystemProcesses
And then happens nothing ... I need to interupt the command with ^C
> 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
$ /usr/lib/nagios/plugins/check_snmp -vvv -H '127.0.0.1' -P 2c -C 'foo' -o
host.hrSystem.hrSystemProcesses.0 -w :'400' -c :'600' -l processes
/usr/bin/snmpget -t 1 -r 5 -m ALL -v 2c [authpriv] 127.0.0.1:161
host.hrSystem.hrSystemProcesses.0
Same here.
Could you please test the problem again with "-v" in your commandline and tell
me exactly, how to configure the snmpd on the remote side to get this
"host.hrSystem.hrSystemProcesses.0" working?
Thanks and with kind regards, Jan.
--
Never write mail to <wa...@spamfalle.info>, you have been warned!
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GIT d-- s+: a C+++ UL++++ P+ L+++ E--- W+++ N+++ o++ K++ w--- O M V- PS PE Y++
PGP++ t-- 5 X R tv- b+ DI D+ G++ e++ h---- r+++ y++++
------END GEEK CODE BLOCK------