Problem With Scheduled Downtime

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

Problem With Scheduled Downtime

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Problem With Scheduled Downtime

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

Re: Problem With Scheduled Downtime

Post 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=
You do not have the required permissions to view the files attached to this post.
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

Re: Problem With Scheduled Downtime

Post by jkinning »

Additional information that was requested.
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Problem With Scheduled Downtime

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

Re: Problem With Scheduled Downtime

Post by jkinning »

That worked. So just not use Day of Week? Just use the day number?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Problem With Scheduled Downtime

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

Re: Problem With Scheduled Downtime

Post 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.
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Problem With Scheduled Downtime

Post 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.
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

Re: Problem With Scheduled Downtime

Post 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.
Locked