how to schedule recurring downtime - first tues of the month

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
pkarr
Posts: 58
Joined: Fri Oct 05, 2012 1:01 pm

how to schedule recurring downtime - first tues of the month

Post by pkarr »

We do monthly patching of our Windows production servers on the First Tues of the month, starting at 21:00 and ending Wed at 04:00 (420 minutes)

I want to set up a recurring downtime for the Hostgroup contain these servers but it doesn’t look like the Recurring Downtime Scheduler allows for that.

recurringdowntime.PNG

thanks,
Penny Karr
[email protected]
Atrius Health | http://www.AtriusHealth.org
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: how to schedule recurring downtime - first tues of the m

Post by tgriep »

What you would do is fill in all of the days in the month for the calendar year the the first Tuesday of the month would fall of and that will filter the days it will run.
Put this in that field.

Code: Select all

1,2,3,4,5,6,7
Be sure to check out our Knowledgebase for helpful articles and solutions!
pkarr
Posts: 58
Joined: Fri Oct 05, 2012 1:01 pm

Re: how to schedule recurring downtime - first tues of the m

Post by pkarr »

Last week I set up the recurring downtime for this.

Well it didn't work the way we wanted it to
It ran First Tuesday of the month from 21:00 to midnight then stopped
(was supposed to run until 04:00 the following day, Wednesday)

And tonight its scheduled itself to run tonight from 21:00-04:00 tomorrow am.

Additionally recurring downtime was only scheduled for the Hosts in this Hostgroup.
This worked,the host notification were supressed. However none of the service check email notifications worked either.

What am I doing wrong?

I've included a screenshot of the recurring downtime I set and a current version of the system profile.

thanks,
Penny
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: how to schedule recurring downtime - first tues of the m

Post by tgriep »

To include the Services for the Hosts, you need to check the Services box when you setup the downtime schedule so it will do the Hosts as well as the Services.
That is why the Notifications for the services were sent. The Service box was not checked.

Can you get the Recurring Downtime log in this location on the Nagios server and post it here so we can see what it scheduled?

Code: Select all

/usr/local/nagiosxi/var/recurringdowntime.log
Be sure to check out our Knowledgebase for helpful articles and solutions!
pkarr
Posts: 58
Joined: Fri Oct 05, 2012 1:01 pm

Re: how to schedule recurring downtime - first tues of the m

Post by pkarr »

Yes, Here it is.
thanks,
Penny
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: how to schedule recurring downtime - first tues of the m

Post by tgriep »

Delete the current setting for that Downtime.
Recreate it and put in the following as the Valid Days as I do not see the schedule taking in to account the days of the month.

Code: Select all

1,2,3,4,5,6
Be sure to check out our Knowledgebase for helpful articles and solutions!
pkarr
Posts: 58
Joined: Fri Oct 05, 2012 1:01 pm

Re: how to schedule recurring downtime - first tues of the m

Post by pkarr »

Its almost time again for our monthly Windows Production patching here at Atrius Health.

Its the first Tues of the month, starting at 21:00 and ending Wed at 04:00. Hostgroup is Infrastructure - Patching - All Monthly Windows PROD Servers, we just want the hosts to go into recurring downtime, not the service
checks.

I think I have it right but would like you to verify.
I've included a current system profile, recurringdowntime.log and a screenshot of what I set up.

thanks,
Penny
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: how to schedule recurring downtime - first tues of the m

Post by tgriep »

The recurringdowntime log shows that the hosts are scheduled and the time looks right.
Verify them by going to the Home > Scheduled Downtime menu, search for a host in that group and check it.
Be sure to check out our Knowledgebase for helpful articles and solutions!
pkarr
Posts: 58
Joined: Fri Oct 05, 2012 1:01 pm

Re: how to schedule recurring downtime - first tues of the m

Post by pkarr »

I was hoping I would be able to close this one today, our Winodws Production Patching run last night. Alas, no.

The recurring downtime disabled the host notifications for the intended hostgroup - which was what we wanted.
However it also disabled all the service checks on these hosts, which we didn't want.

I doubled checked them in Scheduled Downtime as you suggested after your last reply and only the host downtime was listed.

Could there be a bug in the recurring downtime script? We have never had a problem with it before but until now we have always used it to
disable both host and service checks in a Hostgroup.

thanks,
Penny
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: how to schedule recurring downtime - first tues of the m

Post by tgriep »

Can you get the /usr/local/nagios/var/nagios.log file and the newest archive log file in the /usr/local/nagios/var/archives folder and upload them here so we can view them?
Thanks.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked