Command definition arguments don't work correctly
Posted: Fri Aug 31, 2012 2:27 pm
Hey all, I'm trying to monitor some resources on my ProCurve switches and I've hit another snag. I set my Warning argument for a return code of 3 but in my Nagios I get a warning with a return code of 4. Here's an example of what I'm talking about:
That code gives me a warning with a return code of 4 instead of 3 like this:
I get the same thing running it from the command line. As a test I put -w 4 to see what would happen (from the command line) and I got an ok:
SO, how do I get Nagios to see 3 as a warning?
Thanks,
Joe B
Code: Select all
check_command check_snmp! -C public -o 1.3.6.1.4.1.11.2.14.11.1.2.6.1.4.2 -w 3 -c 2:5 -l 'Power Supply status'That code gives me a warning with a return code of 4 instead of 3 like this:
Code: Select all
OS-2824IDFRm HP Power WARNING 08-31-2012 12:10:01 0d 1h 2m 27s 3/3 SNMP WARNING - Power Supply status *4* Code: Select all
SNMP OK - Power Supply status 4 | Power Supply status=4Thanks,
Joe B