I am running a check_proc test on NagiosXI, is there a way to get NagiosXI to restart a process if it is missing and alerted by the check?
Cheers,
Gavin
Restarting missing process after alert?
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Restarting missing process after alert?
Yes.
You can add a command in Configure -> Core Config Manager -> Commands that does what you need to do (this can be a script and can use macros)
make the Command type misc command
Then, go to your service
Configure -> Core Config Manager -> Services -> Modify Service -> Check Settings Tab
and select your Event handler and set Event handler enabled to on
Addition Event handling documentation.
http://nagios.sourceforge.net/docs/3_0/ ... dlers.html
You can add a command in Configure -> Core Config Manager -> Commands that does what you need to do (this can be a script and can use macros)
make the Command type misc command
Then, go to your service
Configure -> Core Config Manager -> Services -> Modify Service -> Check Settings Tab
and select your Event handler and set Event handler enabled to on
Addition Event handling documentation.
http://nagios.sourceforge.net/docs/3_0/ ... dlers.html