check_snmp working, but not sure if output checking correct
Posted: Thu May 30, 2013 6:48 pm
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:
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
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
Thanks...Lyle