Page 1 of 1

Trigger on CRITICAL state

Posted: Sat Nov 18, 2017 12:45 pm
by meristema
Hello guys,
I'm monitoring a windows server with nsclient++ and I would like to know if , when one service going in critical state becasue stopped, is possbile trigger a command for start service.

thanks!
Andrew

Re: Trigger on CRITICAL state

Posted: Mon Nov 20, 2017 1:50 pm
by npolovenko
Hello, @meristema. Yes, you should be able to. Use this documentation to set up a script on the windows server: https://assets.nagios.com/downloads/nag ... ios-XI.pdf
And this documentation to add the event handler to a service check in Nagios Core:
https://assets.nagios.com/downloads/nag ... dlers.html

Re: Trigger on CRITICAL state

Posted: Wed Nov 22, 2017 6:58 am
by meristema
it works!

thanks

Re: Trigger on CRITICAL state

Posted: Wed Nov 22, 2017 1:30 pm
by npolovenko
@meristema, You're welcome! I'll close this thread as resolved.