Page 1 of 1
Reoccuring Schedule Downtime issue
Posted: Tue May 07, 2019 12:54 am
by mohsinkhan009
We have a nagios - otrs integration on placed and the configuration is based on event handler. as the service was in schedule downtime the event handler has been trigger due which new ticket was created in OTRS and we are unable to trace the RCA that why in the downtime the event handler has trigger. Attaching the screen shot for the same
[img]C:\Users\mk00353502\Desktop\nagios%20error.JPG[/img]
Re: Reoccuring Schedule Downtime issue
Posted: Tue May 07, 2019 4:55 pm
by npolovenko
Hello,
@mohsinkhan009. I'm not able to see the screenshot.
The problem is that event handlers get triggered during scheduled downtime, right? Where and how did you define the event handler? Event handlers usually fire on every state change regardless of whether the host is in downtime or not. Your best bet would be to create a logic inside the event handler itself to execute the rest of the script only if service or host is in downtime.
Check the $SERVICEDOWNTIME$ and $HOSTDOWNTIME$ macros from:
https://assets.nagios.com/downloads/nag ... cedowntime