check_nsca

Dj kavanski bitsandbytes88 at hotmail.com
Mon Jul 18 19:05:49 CEST 2005


Hi all,

Does the following look like it will work for the submit_check_result
 file?  Any help is appreciated. 				





#!/bin/sh



# This will process nagios monitor checks

# check_load



echocmd="/bin/echo"

#CommandFile="/usr/local/nagios/var/rw/nagios.cmd"

CommandFile="/usr/local/nagios/libexec/eventhandlers/nagios.cmd"



# get the current date/time

datetime='date +%s'



#create the command line to add to the command file

#cmdline="[$datetime] PROCESS_SERVICE_CHECK_RESULT;$1;$2;$3;$4"

1=server.domain.com

2='load check'

3=2

4="/usr/local/nagios/libexec/check_load -w 3,3,3 -c 3.5,3.5,3.5"

cmdline="[$datetime] PROCESS_SERVICE_CHECK_RESULT;$1;$2;$3;$4"

#cmdline="[$datetime] /usr/local/nagios/libexec/check_load -w
 3,3,3 -c 3.5,3.5,3.5"





#append the command to the end of the command file

'$echocmd $cmdline >> $CommandFile'





- Alf



-----------------------

This thread is located in the archive at this URL:

http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_pi
1[showUid]=8720

					


-------------------------------------------------------
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_idt77&alloc_id492&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