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
Disable all service event handlers for a specific host.
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Disable all service event handlers for a specific host.
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.
Re: Disable all service event handlers for a specific host.
thank you.
I did manage that as per your suggestion.
I did manage that as per your suggestion.