Page 2 of 2

Re: how to schedule recurring downtime - first tues of the m

Posted: Wed Jul 03, 2019 3:03 pm
by pkarr
Hi Tom,
Yes, here they are.

Penny

Re: how to schedule recurring downtime - first tues of the m

Posted: Wed Jul 03, 2019 3:17 pm
by tgriep
I totally lost my mind.
By default, when a service goes down, it looks at the host and if that is down, it will not send a notification for the service.
Since the host check in in downtime, you will not get notified.
That is a standard function.
Sorry about that.

Re: how to schedule recurring downtime - first tues of the m

Posted: Fri Jul 19, 2019 11:54 am
by pkarr
Ok I’m back working on this issue. 2.5 weeks to figure it out.

Well this is a bummer. The recurring downtime did make it look like it was possible.
Heck, even the underlying perl script did. However, once you mentioned it, we all said, ‘oh yeah, I remember that now. Duh’

Would Scheduled Downtime work the same way? It too gives you the option of “Do nothing with the associated services”.
It would have to be set up monthly prior to production patching, which is a pain, but would it work?

If not I still have a problem and I need to come up with a solution. I am thinking this hostgroup needs its own host template.

However, it seems like our topic has morphed into something else. Should we close this ticket and open another one or just keep going on this one?


thanks,
Penny Karr
[email protected]
Atrius Health | http://www.AtriusHealth.org

Re: how to schedule recurring downtime - first tues of the m

Posted: Fri Jul 19, 2019 1:20 pm
by tgriep
What you are looking for is to receive the Service Notifications no matter what even if the Host is set in Downtime, or is down, correct?

If so, that has been requested to be added to Nagios Core but it has not been done as of yet.
https://github.com/NagiosEnterprises/na ... issues/397

I also forgot about this.
Notifications for services are suppressed if the host they're associated with is in a period of scheduled downtime.
https://assets.nagios.com/downloads/nag ... tions.html

About the only option left is to just disable Host Notifications instead but leave the Service Notifications enabled.

In newer versions of XI, you can do an API call to disable the host notifications for a hostgroup or you can write a script to do the same.
For the API, go to the Help > System Reference menu and look as the corecommand API.

For a script, look at this.
https://assets.nagios.com/downloads/nag ... mand_id=82