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
how can I restart the process automatically if it is stopped
Re: how can I restart the process automatically if it is sto
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.
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.
Former Nagios employee