Command definition arguments don't work correctly

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
jbruyet
Posts: 235
Joined: Wed Dec 28, 2011 12:14 pm

Command definition arguments don't work correctly

Post by jbruyet »

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:

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* 
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:

Code: Select all

SNMP OK - Power Supply status 4 | Power Supply status=4
SO, how do I get Nagios to see 3 as a warning?

Thanks,

Joe B
Locked