Check during Schedule downtime and event handler

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
steph007
Posts: 177
Joined: Mon Jul 24, 2017 12:00 pm

Check during Schedule downtime and event handler

Post by steph007 »

Hi,

I have a case who fall into crack.

When rebooting a server a script is automatically launched to put Nagios in schedule downtime for that host and it's services. We don't want alert for planed reboot (sysadmin scheduled that every day for many servers for having all servers reboot at least 1 time by month).
At reboot, the check restart even if the server is in schedule downtime. If a service is in Critical state at reboot it will launch my event handler for interact with our paging system, but because the server and it's services are in schedule downtime my script will not contact the support team. When the schedule downtime is over, the Critical state remain the same and my event handler is not launched (event handler is launched on state change) causing the support to not been paged event if the service is still critical.

Is there a way to work around this? Option to not doing check if it's in schedule downtime would do the job but i'm not aware of such option.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Check during Schedule downtime and event handler

Post by scottwilkerson »

The only thing I could think of would be to also disable checks with commands like these
https://assets.nagios.com/downloads/nag ... mand_id=34

https://assets.nagios.com/downloads/nag ... mand_id=54
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked