xi Not scheduling recurring downtime correctly

This support forum board is for support questions relating to Nagios xi, our flagship commercial network monitoring solution.
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

xi Not scheduling recurring downtime correctly

Post by jsmurphy »

Hi Guys,

I was just testing out the recurring downtime function with r2.1 as last time I tried it back on r1.6 it all went horribly, horribly wrong. This time the Nagios server didn't catch fire which is positive but rather than scheduling the downtime an hour before scheduled as it states on the page it scheduled it at the next whole hour interval.

The recurring outage is scheduled for 9pm so based on the text on the page it should have scheduled the downtime at 8pm... instead it scheduled it 5 minutes later at 11am. Is the text on the page wrong or is it not quite working as advertised yet?

Thanks!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: xi Not scheduling recurring downtime correctly

Post by scottwilkerson »

Actually, what the page is trying to suggest is that you need to schedule the the recurring downtime at least one hour in advance of the first time you want the downtime to occur.

The cron for this runs every hour (@ :01) to try to schedule these.

One thing I should point out is that on your install if you have moved the status.dat, objects.cache, or nagios.cmd have been moved from their default locations (common on a ramdisk setup) you will need to modify /usr/local/nagiosxi/cron/recurringdowntime.pl with the correct locations. this is on our radar to be fixed in the future.

Also, I am attaching a new copy of that file that corrects some other date related items if you like. (this is in 2011R2.3)
You do not have the required permissions to view the files attached to this post.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: xi Not scheduling recurring downtime correctly

Post by jsmurphy »

Good to know that it's working as intended, I think the wording may need to be cleaned up though (unless its already changed in a later version) because the one for 2.1 on the recurring downtime page says "...These schedules are added to the monitoring engine one hour before they are set to activate.". Unless I'm not reading that as it was intended to be read.

Thanks for the updated version of the script!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: xi Not scheduling recurring downtime correctly

Post by scottwilkerson »

jsmurphy wrote:recurring downtime page says "...These schedules are added to the monitoring engine one hour before they are set to activate.". Unless I'm not reading that as it was intended to be read.
It hasn't been updated but it should, I'm gonna add it to the todo list... Thanks
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart