Run a Bat file on service failure?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Run a Bat file on service failure?

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Run a Bat file on service failure?

Post 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
Former Nagios employee
Locked