how can I restart the process automatically if it is stopped

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
jiskjoy
Posts: 1
Joined: Mon Nov 11, 2013 8:27 am

how can I restart the process automatically if it is stopped

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

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

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