Page 1 of 1

how can I restart the process automatically if it is stopped

Posted: Mon Nov 11, 2013 8:36 am
by jiskjoy
Hi,

I would like to know how can I restart the process automatically if it is stopped, Which is monitored by nagios

For example:- I am monitoring http service and the service should automatically restart if it is not running/wedged/stopped for 10 minutes

Regards
Jismon K Joy

Re: how can I restart the process automatically if it is sto

Posted: Mon Nov 11, 2013 10:13 am
by tmcdonald
Take a look at Event Handlers: http://nagios.sourceforge.net/docs/3_0/ ... dlers.html

That guide will work well for local resources, but if you need to restart a remote one you'll want to use NRPE. Here are two good articles explaining how this can be set up:

http://blog.karssen.org/2010/09/14/nagi ... -machines/
http://blog.gnucom.cc/2009/event-handle ... sing-nrpe/

You will of course need to make your own changes where necessary.