[Nagiosplug-help] check_snmp ignores warn and critical

Thomas Guyot-Sionnest dermoth at aei.ca
Wed Dec 1 07:15:06 CET 2010


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

On 10-10-22 09:04 AM, Thomas Vogt wrote:
> Hello
> 
> It looks like the latest greatest nagios plugin 1.4.15 changed a few
> things in check_snmp. I use sysUpTimeInstance output to see if my
> hardware devices have rebooted.
> 
> My example check_snmp command:
> 
> ./check_snmp -H xxxxxx -C public -P2c -o sysUpTimeInstance -t 20 -e 3 -c
> 90000000: -u "1/100 sec"
> 
> Output:
> SNMP OK - Timeticks: (2012945) 5:35:29.45 1/100 sec |
> 
> Problem:
> Ever check receives a OK message, no Critical or warn (if definied)
> message, never. It looks like -c and -w thresholds are ignored or could
> not checked against the output.
> 
> The same check worked fine with nagios plugin 1.4.14:
> 
> ./check_snmp -H xxxxxx -C public -P2c -o sysUpTimeInstance -t 20 -e 3 -c
> 90000000: -u "1/100 sec"
> 
> Output:
> SNMP CRITICAL - *2101283* 1/100 sec |
> DISMAN-EVENT-MIB::sysUpTimeInstance=2101283
> 
> Any idea why my check is no longer working with 1.4.15?

The latest snapshot (nagios-plugins-master.tar.gz) here should fix your
issue:
http://nagiosplug.sourceforge.net/snapshot/

Thanks

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

iEYEARECAAYFAkz15+oACgkQ6dZ+Kt5BchZxLwCgyxp18s2rnjRFsMzvLnVCTYSH
sGIAmwYNMVO0x4uqC6qVOlRwot6rvYXp
=rYt/
-----END PGP SIGNATURE-----




More information about the Help mailing list