Page 1 of 1

Question with updating recurring downtime

Posted: Fri Oct 01, 2021 11:01 am
by kostadin.boychev
Hello forum,

I just updated a recurring downtime schedule that I have for the weekend for specific services on a host to match our reboot cycles and when I go to the Scheduled Downtime section where it gets generated by this schedule, I still see the old schedule and not the new one. It has been more than 2 hours since I set that up. Do I need to delete the entries on the old schedule inside Sheduled Downtime or do I need to remove fully and set up recurring downtime again?

Is it possible that the cron job is runinng once a week to grab those instead of once per hour?

Thank you,
Kostadin

Re: Question with updating recurring downtime

Posted: Mon Oct 04, 2021 2:49 pm
by benjaminsmith
Hi,

If an edit is made to an existing schedule, but some jobs have been submitted already, then it's necessary to remove those in the Scheduled Downtime Page.

I would check to make sure the cron service is running on the server. It is supposed to run every hour.

Code: Select all

systemctl status crond
You can manually run this using the following command.

Code: Select all

 /usr/bin/php -q /usr/local/nagiosxi/cron/recurring_downtime.php >> /usr/local/nagiosxi/var/recurringdowntime.log 2>&1
If the cron service is not running as expected, then please post the output of the following command. Thanks, Benjamin

Code: Select all

tail -n 100 /var/log/cron