check_snmp working, but not sure if output checking correct

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
lyle
Posts: 158
Joined: Sun Nov 21, 2010 3:05 am

check_snmp working, but not sure if output checking correct

Post 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
Last edited by lyle on Fri May 31, 2013 1:03 pm, edited 1 time in total.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

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

Post by abrist »

Try forcing an error condition and then recheck the oid. This should give you an example of what to expect.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked