Reoccuring Schedule Downtime issue

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
mohsinkhan009
Posts: 1
Joined: Mon May 06, 2019 10:36 pm

Reoccuring Schedule Downtime issue

Post 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]
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Reoccuring Schedule Downtime issue

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked