Hi,
As in planned downtime we can suppress the nagios notifications, can we do same with event handlers?
I mean would event handlers be executed in planned downtime?
And if we don't want event handler's to be called in planned down time what could be done?
Thanks in Advance.
Regarding Eventhandlers suppression in planned downtime
Regarding Eventhandlers suppression in planned downtime
****samya****
Re: Regarding Eventhandlers suppression in planned downtime
Good question. By default, most people do not write their event handlers with the capability to consider scheduled downtime. You can write logic into your event handler scripts so they will not run if downtime is detected. This is accomplished by using the $HOSTDOWNTIME$ and/or $SERVICEDOWNTIME$ macros in your event handler definitions. If these macros are non-zero, then the service/host is considered to be in scheduled downtime. This will allow you to have your event handlers decide how to proceed.
Two other options:
Disable all event handlers globally in nagios.cfg = enable_event_handlers
Disable event handler at the host or service level, check for 'event_handler = enabled' in the definition.
Hope this helps, but let us know if there are lingering questions.
Two other options:
Disable all event handlers globally in nagios.cfg = enable_event_handlers
Disable event handler at the host or service level, check for 'event_handler = enabled' in the definition.
Hope this helps, but let us know if there are lingering questions.
Be sure to check out the Knowledgebase for helpful articles and solutions!
Re: Regarding Eventhandlers suppression in planned downtime
Hi,
Thanks for reply.
Will try this suggestion.
Thanks for reply.
Will try this suggestion.
****samya****
Re: Regarding Eventhandlers suppression in planned downtime
Let us know if you encounter additional issues!
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/