Page 2 of 2

Re: I would like to run a batch file when a threshold is exc

Posted: Tue Feb 18, 2014 11:17 am
by benningtonr
this is my command to run with the event handler

$USR1$/run_Capture -H -u 60 192.168.99.150 -c capture\capture.bat

Doesn't seem to be working

Re: I would like to run a batch file when a threshold is exc

Posted: Tue Feb 18, 2014 11:42 am
by lmiltchev
Is this a typo?
$USR1$/run_Capture -H -u 60 192.168.99.150 -c capture\capture.bat

Re: I would like to run a batch file when a threshold is exc

Posted: Tue Feb 18, 2014 12:39 pm
by benningtonr
yes, sorry

$USER1$/run_Capture -H -u 60 192.168.99.150 -c capture\capture.bat

Re: I would like to run a batch file when a threshold is exc

Posted: Tue Feb 18, 2014 12:53 pm
by slansing
This might be of help as well, I wrote up a small guide on implementing an automated service restart on a windows/linux system when a check on that service returned that it was down. You could glean some information from that and sculpt it around your check / handler combo:

http://library.nagios.com/library/produ ... -nagios-xi

Re: I would like to run a batch file when a threshold is exc

Posted: Thu Feb 20, 2014 1:45 pm
by benningtonr
So, is this in a proper format to start the BAT file?

$USER1$/run_Capture -H -u 60 192.168.99.150 -c capture\capture.bat

Re: I would like to run a batch file when a threshold is exc

Posted: Thu Feb 20, 2014 2:57 pm
by lmiltchev
What is in run_Capture and capture.bat? Can you post the code?