Trigger on CRITICAL state

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
meristema
Posts: 2
Joined: Thu Feb 09, 2017 5:29 am

Trigger on CRITICAL state

Post 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
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Trigger on CRITICAL state

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
meristema
Posts: 2
Joined: Thu Feb 09, 2017 5:29 am

Re: Trigger on CRITICAL state

Post by meristema »

it works!

thanks
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Trigger on CRITICAL state

Post by npolovenko »

@meristema, You're welcome! I'll close this thread as resolved.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked