Page 1 of 1

check_snmp working, but not sure if output checking correct

Posted: Thu May 30, 2013 6:48 pm
by lyle
Using the check_snmp plugin, v1991 (nagios-plugins 1.4.12), I'm checking a Liebert UPS for any error condition. I believe I have the correct OID, and my call and results look like this:

Code: Select all

check_snmp -H <Liebert's IP> -C Public -o 1.3.6.1.2.1.33.1.6.1.0
SNMP OK - 0 | iso.3.6.1.2.1.33.1.6.1.0=0 

# and with the -v switch:
check_snmp -H <Liebert's IP> -C Public -o 1.3.6.1.2.1.33.1.6.1.0 -v
/usr/sfw/bin/snmpget -t 1 -r 5 -m '' -v 1 -c Public <Liebert's IP>:161  1.3.6.1.2.1.33.1.6.1.0
iso.3.6.1.2.1.33.1.6.1.0 = Gauge32: 0
SNMP OK - 0 | iso.3.6.1.2.1.33.1.6.1.0=0 
Not wanting to create an alarm condition on the UPS to test, am I done here? Or do I have to test the results for a regular expression with "check_snmp -r" or something?

Thanks...Lyle

Re: check_snmp working, but not sure if output checking corr

Posted: Fri May 31, 2013 9:49 am
by abrist
Try forcing an error condition and then recheck the oid. This should give you an example of what to expect.