getting closer

John Stotler jstotler at mysck.com
Wed Apr 21 20:32:32 CEST 2004


I've realized that I can run my check script on the box hosting nagios,
so I can simply write directly to the nagios.cmd file.

Now, however, I'm getting an "Incorrect number of arguments supplied"
error.

Here's the bit in services.cfg:

#'check_ibm_db' command definition
define command {
command_name check_ibm_db
command_line /usr/local/nagios/libexec/check_dummy -H $HOSTADDRESS$
}

Here's what I'm writing out to the FIFO:

/bin/echo -e "[1082570845]
PROCESS_SERVICE_CHECK_RESULT;eco-bobino;check_ibm_db;0;0" >>
/usr/local/nagios/var/rw/nagios.cmd

Now, it would seem to me that since I'm writing directly to the command
file, the arguments for check_dummy in services.cfg shouldn't really
come into play, but it appears that I'm mistaken on this, and doing
something wrong....



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&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