Page 1 of 1

Run a Bat file on service failure?

Posted: Thu Jun 12, 2014 7:52 am
by benningtonr
Is there a way to run a bat file is a service reports a failure.
Apache2 has started being unresponsive lately and requires a restart. I would like the service monitor to run a bat file on the first report that the web site i am monitoring fails.

Is this possible?

Thank you for all inputs.

Re: Run a Bat file on service failure?

Posted: Thu Jun 12, 2014 9:27 am
by tmcdonald
So you're running Apache on a Windows machine? If so I think this doc will help you out:

http://assets.nagios.com/downloads/nagi ... h_NRPE.pdf