Page 1 of 1

Disable all service event handlers for a specific host.

Posted: Mon May 05, 2014 6:07 pm
by barathia
I don't find a single way to disable all service event handlers for a specific host.

I had to go through each individual service's advance tab to disable the event handler. We have event handler that create tickets. I don't see that by scheduling a downtime on host it disables notifications nor event handlers. In the case of notifications there is a option under advance tab in a specific host to disable it for all services under that host. In the case of event handlers I don't believe scheduling a downtime on host or all its service helps hence current we are disabling all event handlers per service.

I was wondering if there is a easy way to disable all event handlers under the same host.

Kind regards
Amal

Re: Disable all service event handlers for a specific host.

Posted: Tue May 06, 2014 9:24 am
by sreinhardt
Currently the way you are doing it, or submitting via the nagios command pipe are about the only ways to disable\enable items like event handlers, short of modifying the configs and restarting the nagios daemon. I might suggest instead, passing your event handler whether or not the host\service is in downtime presently via macros, and handling the logic within the script. This way you no longer need to manually handle this, but your event handler will instead.

Re: Disable all service event handlers for a specific host.

Posted: Mon May 19, 2014 3:35 pm
by barathia
thank you.

I did manage that as per your suggestion.