checkcommand.cfg and SNMP problems

Scott Behrens behrens at mcs.anl.gov
Wed Jun 22 23:06:01 CEST 2005


I am defining a check_snmp for two OID's the first one is an exit code 
the second is a description.  It seems that the ',' used to separate the 
two OID's is being replaced by a ' ' in Nagios.
Running the following from the command line produces:

behrens: /usr/lib/nagios/plugins/check_snmp -H tg-v001 -p 1 -c 0:0 -C watchme -o enterprises.ucdavis.extTable.extEntry.extResult.1,enterprises.ucdavis.extTable.extEntry.extOutput.1

SNMP OK - 0 ypmatch -k user password

This is all the correct information, however if I look at the process tree for nagios as it runs the command:

behrens: /usr/lib/nagios/plugins/check_snmp -H tg-v001 -p 1 -c 0:0 -C watchme -o enterprises.ucdavis.extTable.extEntry.extResult.1 enterprises.ucdavis.extTable.extEntry.extOutput.1

Basically what is happening is the ',' is getting replaced witha  space.  I tried everytning from backslashes to double and single quotes.  This is causing the results in nagios to only display the exit code.  What needs to change to allow the ',' to stay?



Scott Behrens  
Network and Systems Staff
Room B-244 1-630-252-4198
Mathematics and Computer Science Division
Argonne National Laboratory 



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list