I have 90 recurring downtimes that run every day of the week. They run just fine and we have eliminated unnecessary alerts in the middle of the night as intended. However, last night, the alert messages came rolling in. We have had a similar issue in the past, but only during the last two days of March, which has been fixed. In that case, the recurring downtimes were scheduled, but skipped over those specific days and picked up on 1 April. However, today's problem is slightly different. When I logged into Nagios and clicked on the Scheduled Downtime link, there is nothing shown, apart from the headers for Hosts and Services. The Recurring Downtime page shows the complete list of downtimes and their correct, unchanged, start times. I've noticed in the past that I would normally see the next 48 hours, when I clicked on Scheduled Downtime. However, there is nothing listed today for the next 48 hours. I created a new downtime to see what happens and it too, does not appear in the scheduled list. The date/time on the server is correct.
We upgraded to v2.2 on the first of the month, but the downtimes worked fine until now. The only other change was the replacement of the recurringdowntime.pl file based on a bug identified in another ticket (http://support.nagios.com/forum/viewtop ... =16&t=5366). That was on 30 March. Again, things worked fine from then until now.
Any ideas of why they're not scheduling themselves?
Thanks,
Lonnie
Scheduled Downtime List Is Empty
-
- Posts: 18
- Joined: Wed Mar 30, 2011 7:44 am
Re: Scheduled Downtime List Is Empty
After some further testing, I've realized that I can schedule a downtime from the Scheduled Downtime page and it appears on the list. However, if I go back to Recurring Downtime and click Add Schedule and create a recurring downtime, it does not appear on the list.
I wanted to make the distinction in the event that meant something to someone.
Thanks,
LT
I wanted to make the distinction in the event that meant something to someone.
Thanks,
LT
Re: Scheduled Downtime List Is Empty
It would not appear immediately. A cron job runs every hour or so, so you have to schedule it at least 1 hour earlier. It will show up after the next cron job is run.
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 18
- Joined: Wed Mar 30, 2011 7:44 am
Re: Scheduled Downtime List Is Empty
Is there any way to force the Recurring Downtimes to be scheduled? I'm a Windows Admin by trade, so I'm not familiar with most of the CLI options available with Nagios XI. I did reboot the server when we first identified the problem, which was over 30 hours ago. My Recurring Downtime list is still there, but there is nothing listed under Scheduled Downtime.
Again, I recreated a couple yesterday to see if that would help, but are not getting scheduled either. Any assistance would be greatly appreciated.
Lonnie
Again, I recreated a couple yesterday to see if that would help, but are not getting scheduled either. Any assistance would be greatly appreciated.
Lonnie
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Scheduled Downtime List Is Empty
you could run this manually, but it should be running hourly on cron
Code: Select all
/usr/local/nagiosxi/cron/recurringdowntime.pl
-
- Posts: 18
- Joined: Wed Mar 30, 2011 7:44 am
Re: Scheduled Downtime List Is Empty
Thanks Scott. Running the job gave me an error, which jogged my memory. I don't have a lot of Linux experience, so somethings slip by me without thinking. After identifying a problem with our system that prevented scheduled downtimes running on 29-31 Mar, I was sent a new recurringdowntime.pl file and told to replace the old one. I did and did not change permissions to make the file executable. The error I got when doing what you told me caused me to think of it. Changed that and voila, the downtimes are back. Thank you very much.
Lonnie
Lonnie
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Scheduled Downtime List Is Empty
Excellent, a lot better to hear that then something wrong with the script.