Page 1 of 2
how to schedule recurring downtime - first tues of the month
Posted: Mon May 13, 2019 4:45 pm
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
Re: how to schedule recurring downtime - first tues of the m
Posted: Tue May 14, 2019 9:05 am
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.
Re: how to schedule recurring downtime - first tues of the m
Posted: Tue Jun 11, 2019 11:20 am
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
Re: how to schedule recurring downtime - first tues of the m
Posted: Tue Jun 11, 2019 2:04 pm
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
Re: how to schedule recurring downtime - first tues of the m
Posted: Tue Jun 11, 2019 3:03 pm
by pkarr
Yes, Here it is.
thanks,
Penny
Re: how to schedule recurring downtime - first tues of the m
Posted: Tue Jun 11, 2019 4:22 pm
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.
Re: how to schedule recurring downtime - first tues of the m
Posted: Fri Jun 28, 2019 2:46 pm
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
Re: how to schedule recurring downtime - first tues of the m
Posted: Fri Jun 28, 2019 3:09 pm
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.
Re: how to schedule recurring downtime - first tues of the m
Posted: Wed Jul 03, 2019 2:11 pm
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
Re: how to schedule recurring downtime - first tues of the m
Posted: Wed Jul 03, 2019 2:37 pm
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.