Disable all service event handlers for a specific host.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
barathia
Posts: 18
Joined: Thu Dec 19, 2013 8:04 pm

Disable all service event handlers for a specific host.

Post 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
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

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

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
barathia
Posts: 18
Joined: Thu Dec 19, 2013 8:04 pm

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

Post by barathia »

thank you.

I did manage that as per your suggestion.
Locked