Page 1 of 2

Problem With Scheduled Downtime

Posted: Wed Mar 09, 2016 8:05 am
by jkinning
lmiltchev wrote:I just posted a "workaround". Try this:

https://support.nagios.com/forum/viewto ... 71#p174671

Please let me know if this helped.
This didn't help my situation. My recurring downtime hostgroups never showed with scheduled downtime. I even setup a new downtime schedule and added a hostgroup to it but they too didn't show as having a scheduled downtime.

Moderator's Note: The topic was split as your issue *may be* different than the one of the original poster.

Re: Problem With Scheduled Downtime

Posted: Wed Mar 09, 2016 12:22 pm
by lmiltchev
What is the Nagios XI version that you are currently using? What is the sytem-wide, and user's date format set as? Run "locale" in the CLI, and show the output.

Go to Home->Recurring Downtime->Hostgroups->Add Schedule, select a hostgroup, enter a comment, and a "start time" (a few minutes in the future), and click on "Submit Schedule".

Show us a screenshot of the page.

Run the following command from the CLI:

Code: Select all

/usr/local/nagiosxi/cron/recurringdowntime.pl
Go to Home->Scheduled Downtime, and show us screenshots of the pages under the "Hosts", and "In Effect" tabs.

Re: Problem With Scheduled Downtime

Posted: Wed Mar 09, 2016 1:24 pm
by jkinning
5.2.5 is the version I am running.

Code: Select all

# locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

Re: Problem With Scheduled Downtime

Posted: Wed Mar 09, 2016 1:25 pm
by jkinning
Additional information that was requested.

Re: Problem With Scheduled Downtime

Posted: Wed Mar 09, 2016 3:48 pm
by lmiltchev
I see that you specified a "weekday" and a "day of month"... After trying the same scenario, I found an issue with the "Valid Days of Month". It seems that specifying a day of month will work ONLY if it is not today's date, which is obviously a bug. However, this has nothing to do with the previous bug fix. I will file a separate report about this one.

Edit: Posted -> TASK ID 7971

Anyway, can you try scheduling another downtime without specifying a day of month or specifying one in the future, i.e. tomorrow ( "10" )?

Does it schedule this way?

Re: Problem With Scheduled Downtime

Posted: Wed Mar 09, 2016 4:01 pm
by jkinning
That worked. So just not use Day of Week? Just use the day number?

Re: Problem With Scheduled Downtime

Posted: Wed Mar 09, 2016 4:10 pm
by lmiltchev
So just not use Day of Week? Just use the day number?
The other way around - use the day of the week only. Don't use the day number.
You can use the day number but it has to be different than today's date.

Re: Problem With Scheduled Downtime

Posted: Mon Mar 14, 2016 8:13 am
by jkinning
Well, that worked to put everything in downtime but didn't clear it after the time period elapsed.

I have everything still the same, haven't cleared anything. But these should not be scheduled as downtime now.

Re: Problem With Scheduled Downtime

Posted: Mon Mar 14, 2016 5:00 pm
by lmiltchev
Download the file below, unzip it and copy the "recurringdowntime.pl" to "/usr/local/nagiosxi/cron/" overwriting the original file.
recurringdowntime.zip
Note: Make a backup of the original file first!

Schedule a new recurring downtime. Let me know if this fixed your issue.

Re: Problem With Scheduled Downtime

Posted: Tue Mar 15, 2016 9:26 am
by jkinning
It looks like that might have done the trick. We have our maintenance windows on Sunday so I'll see if on Monday everything has cleared out and let you know.