Scheduled Downtime List Is Empty

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
lonnie.thomas
Posts: 18
Joined: Wed Mar 30, 2011 7:44 am

Scheduled Downtime List Is Empty

Post by lonnie.thomas »

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
lonnie.thomas
Posts: 18
Joined: Wed Mar 30, 2011 7:44 am

Re: Scheduled Downtime List Is Empty

Post by lonnie.thomas »

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
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Scheduled Downtime List Is Empty

Post by lmiltchev »

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!
lonnie.thomas
Posts: 18
Joined: Wed Mar 30, 2011 7:44 am

Re: Scheduled Downtime List Is Empty

Post by lonnie.thomas »

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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Scheduled Downtime List Is Empty

Post by scottwilkerson »

you could run this manually, but it should be running hourly on cron

Code: Select all

/usr/local/nagiosxi/cron/recurringdowntime.pl
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
lonnie.thomas
Posts: 18
Joined: Wed Mar 30, 2011 7:44 am

Re: Scheduled Downtime List Is Empty

Post by lonnie.thomas »

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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Scheduled Downtime List Is Empty

Post by scottwilkerson »

Excellent, a lot better to hear that then something wrong with the script.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked