Recurring Downtime setting

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Recurring Downtime setting

Post by abrist »

You could make a continuous set of 7 days as well as specify Friday only. This way it could only happen once a month:
For example:

Code: Select all

Weekday:  Friday
Days:  1,2,3,4,5,6,7 
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Recurring Downtime setting

Post by BanditBBS »

abrist wrote:You could make a continuous set of 7 days as well as specify Friday only. This way it could only happen once a month:
For example:

Code: Select all

Weekday:  Friday
Days:  1,2,3,4,5,6,7 
That would force it to be the 1st Friday of every month. I'm opening a feature request as I will be wanting this in the future myself.

http://tracker.nagios.com/view.php?id=374

EDIT: I guess after writing my next message, I realize you can do what I requested in the feature request by doing day of month numbers.
Last edited by BanditBBS on Mon Feb 25, 2013 12:19 pm, edited 1 time in total.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Recurring Downtime setting

Post by BanditBBS »

JAMES-BAE wrote:BanditBBS, thanks for bring it up regarding the (March would actually have two Fridays fit the criteria, the 8th and 15th). What can I do to get around this ?
I was looking at your setup and abrist's hint. Looks like you do it on a mix of the 2nd or 3rd Friday of month, it is not consistent. If you could standardize, you could put as abrist said "1,2,3,4,5,6,7" for the first Friday or "8,9,10,11,12,13,14" for the 2nd Friday and so on...

The field for "days of month" is not a per month field like you have it setup. If you put 15th in there once, any Friday of any month, that happens to be on the 15th would be valid.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Recurring Downtime setting

Post by scottwilkerson »

Actually, every second Friday configuration would be as follows:

Code: Select all

Valid Weekdays:  Friday
Valid Days of Month:  8,9,10,11,12,13,14 
I have no idea why the OP had
Valid Weekdays: Friday
Valid Days of Month: 18,15,15,12,10,14,12,09,13,11,08,13????
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Recurring Downtime setting

Post by abrist »

BanditBBS wrote:
abrist wrote:You could make a continuous set of 7 days as well as specify Friday only. This way it could only happen once a month:
For example:

Code: Select all

Weekday:  Friday
Days:  1,2,3,4,5,6,7 
That would force it to be the 1st Friday of every month.
It was just an example. If you want it on the second Friday, make it the second continuous set: 8,9,10,11,12,13,14
The only issues someone will run into with this method is if they wish to run something at or near the end of the month.
I'm opening a feature request as I will be wanting this in the future myself.

http://tracker.nagios.com/view.php?id=374
It is not the first time this feature has been requested on the forums, so it's about time for a tracker request :)
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Recurring Downtime setting

Post by BanditBBS »

abrist wrote:It is not the first time this feature has been requested on the forums, so it's about time for a tracker request :)
After further thought, it isn't needed, using numbers in days of month gives the functionality.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Recurring Downtime setting

Post by abrist »

The current system does work fine, unless you want to schedule downtime on the *last* Friday (etc) of the month as some months have 5 instead of 4 Fridays (etc).
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Recurring Downtime setting

Post by BanditBBS »

His schedule isn't standardized, so recurring wouldn't work for him.

I sort of hijacked this thread. But back to his opening issue, no clue why it did it since it was not in the list of valid days.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Recurring Downtime setting

Post by abrist »

Looking at the OP's dates, I would assume he was attempting to set up downtime on the third Friday (and sometimes the second) of every month.
@James: What is the reason for the odd schedule? The issue may be related to having the same numbers entered more than once?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked