[Nagiosplug-help] possible bug in check snmp.

Thomas Guyot-Sionnest dermoth at aei.ca
Fri Jan 18 13:04:11 CET 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 17/01/08 09:00 AM, Bart Korsten wrote:
> Hi, 
> 
> I have a problem with check_snmp (1.4.11)
> 
> When I input : 
> 
> /usr/local/nagios/libexec/check_snmp -H some.host.name -n -C public -o
> 1.3.6.1.4.1.232.22.2.3.1.3.1.11.10 -P 2c -w 3 -c 4
> 
> It returns :
> 
> SNMP CRITICAL - *8730* | iso.3.6.1.4.1.232.22.2.3.1.3.1.12.1=8730
>                                                         ^^^^
> 
> With snmpwalk : 
> 
> snmpwalk -m -OX -v 1 -c public ilo1-enc-node-b3-1.nos-mc.local
> 1.3.6.1.4.1.232.22.2.3.1.3.1.11.10
> 
> It returns :
> 
> SNMPv2-SMI::enterprises.232.22.2.3.1.3.1.11.10 = INTEGER: 2
> 
> I have more snmp checks setup and all the checks that are longer then
> 1.3.6.1.4.1.232.22.2.3.1.3.1.11 seem to fail. Maybe it has to do with
> the length of this OID ?

- From check_snmp --help

 -n, --next
    Use SNMP GETNEXT instead of SNMP GET

This cause SNMP to get the NEXT oid. The result is correct but instead
of getting the oid you specified it returns the first one that follow.

Remove that switch from your check command and you should be good.

BTW a better way to test is to add "-v" to check_snmp. It will print the
exact command used that you can copy-paste to test.

Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHkJW66dZ+Kt5BchYRApUxAKCh43D62JIcfArAQxleF8r15OjHLgCcCaD9
59n8T7zwOSEd+WaEEev5OD8=
=a7mK
-----END PGP SIGNATURE-----




More information about the Help mailing list