Page 1 of 1

Recurring Downtime sometimes not working for a Host

Posted: Tue Aug 08, 2017 7:39 pm
by Fred Kroeger
This is an intermittent problem so I can't provide a lot of diagnostics, except every now and again the Recurring Downtime doesn't get set - which results in a ticket being created.
I have a Recurring Downtime configured for a Host Group which puts a group of hosts and their services into downtime every night - this usually works. But on occasion it seems to miss one (or more) entries.
On the last occasion, it actually put all the services for a host into downtime but not the host itself. I can PM you a copy of the Notifications screen which shows all the services with a Downtime Started message - but not for the host.

Running NagiosXI 5.4.3

Re: Recurring Downtime sometimes not working for a Host

Posted: Wed Aug 09, 2017 1:58 pm
by cdienger
Please PM the screenshot as well as a copy of the /usr/local/nagios/etc/recurringdowntime.cfg. /usr/local/nagiosxi/var/recurringdowntime.log may also be useful but is frequently overwritten. Get it to append by editing the /etc/cron.d/nagiosxi file and change:

Code: Select all

01  * * * * nagios /usr/local/nagiosxi/cron/recurringdowntime.pl > /usr/local/nagiosxi/var/recurringdowntime.log 2>&1
To:

Code: Select all

01  * * * * nagios /usr/local/nagiosxi/cron/recurringdowntime.pl >> /usr/local/nagiosxi/var/recurringdowntime.log 2>&1
Restart crond then with:

Code: Select all

service crond restart
I'd check /usr/local/nagiosxi/var/recurringdowntime.log once a day to make sure it's not getting too big and delete it periodically if the problem doesn't occur.

Re: Recurring Downtime sometimes not working for a Host

Posted: Thu Aug 10, 2017 9:19 pm
by Fred Kroeger
Thanks - info has been PM'd to you

Fred

Re: Recurring Downtime sometimes not working for a Host

Posted: Fri Aug 11, 2017 11:43 am
by cdienger
Data received. Did you make the change to the cron job as well? I'd like get this as soon as you see the problem again along with a profile. It would probably be best to move this to a ticket though so please email [email protected] and reference this thread and I'll take ownership.