Page 1 of 2

Recurring Downtime Question

Posted: Mon Oct 26, 2015 9:37 am
by brdr
Hi,

We are using XI 2014R2.7.

I can't seem to get it right with configuring recurring downtime. Can you please help me with this scenario.

In Recurring downtime I need to configure a service downtime starting Friday night at 23:45 and ending at 00:15 Monday morning.

In Nagios i have configured the following:

Start Time: 23:45
Duration: 2910 (minutes)

Valid Weeks: Fri (only)
Valid Days of Month: blank

Is this correct?

Re: Recurring Downtime Question

Posted: Mon Oct 26, 2015 9:42 am
by BanditBBS
That's how I'd do it. doesn't mean it is correct, but that is definitely how I would have tried.

Re: Recurring Downtime Question

Posted: Mon Oct 26, 2015 2:52 pm
by lmiltchev
I can't seem to get it right with configuring recurring downtime.
What is the exact issue that you are having? Is the recurring downtime scheduled for the 1st Friday only or is it not scheduled at all? Can you post the "/usr/local/nagios/etc/recurringdowntime.cfg" and the "/usr/local/nagiosxi/var/recurringdowntime.log"?

Re: Recurring Downtime Question

Posted: Tue Oct 27, 2015 3:18 pm
by brdr
Attached are the 2 files you asked, and the 3 file is a brief writeup.

Re: Recurring Downtime Question

Posted: Tue Oct 27, 2015 3:34 pm
by BanditBBS
This is a bug in core as far as I can tell. I just added the downtime with my downtime component that uses the external commands and it did the same thing.

Re: Recurring Downtime Question

Posted: Tue Oct 27, 2015 4:29 pm
by lmiltchev
You are correct - it is a bug. I and Tom were able to recreate the issue in house.
I don't think it is a Core bug but I will let developers figure it out.
I filed an internal bug report (TASK ID 6770).

Re: Recurring Downtime Question

Posted: Tue Oct 27, 2015 4:35 pm
by BanditBBS
lmiltchev wrote:You are correct - it is a bug. I and Tom were able to recreate the issue in house.
I don't think it is a Core bug but I will let developers figure it out.
I filed an internal bug report (TASK ID 6770).
Ludmil,

The reason I say it is a Core bug is if I use external commands it happens as well, and those are core functions. Unless I'm totally off base here(not out of the question)

Re: Recurring Downtime Question

Posted: Wed Oct 28, 2015 6:55 am
by brdr
Glad you guys can reproduce it. I thought i was going crazy.

What is the actual bug?

thx

Re: Recurring Downtime Question

Posted: Wed Oct 28, 2015 3:09 pm
by tgriep
The bug is that the end time is cut 60 minutes short. In your example, it will not stop the schedule on Monday at 12:15am but it will be Sunday at 11:15pm.

Re: Recurring Downtime Question

Posted: Thu Oct 29, 2015 8:30 am
by brdr
I thought that was it. So, i just added 60 more mins to offset the bug. But it still DOES NOT adjust out the 60 mins.

Here is the comment in the service after deleting the old one, and the new adjusted schedule below....
--
By nagiosadmin at 2015-10-29 09:25:27
This service has been scheduled for fixed downtime from 10-30-2015 23:45:00 to 11-01-2015 23:15:00. Notifications for the service will not be sent out during that time period.
--
define schedule {
sid de677c29d3a7c96c477588013404ebbb
user nagiosadmin
comment
time 23:45
duration 2970
days_of_week fri
days_of_month
schedule_type service
service_description BondPAS - Online Feed Loader
host_name bed-500-10
}