Page 1 of 1

Creating a weekend or after hours config file

Posted: Fri Jul 06, 2018 5:05 pm
by itadmins
Hi everyone,

We're trying to reduce the amount of alerts we get and I'd like to accomplish this by having a secondary configuration file which takes effect outside of business hours and the weekend. Basically this will increase the "max check attempts" for certain host and service groups during the weekend.

Since often what happens is applications like sharepoint will run search crawls for a few hours during low usage hours causing the cpu to hover around 90%.

If there is a better/easier way to accomplish this please let me know.

Thanks!

Re: Creating a weekend or after hours config file

Posted: Mon Jul 09, 2018 10:41 am
by cdienger
You can use time periods to accomlish this. Create a two time period configurations(one for the weekend and one for week days) under Configure > Core Config Manager > Alerting > Time Periods. Then you'll need create two monitoring checks(again, one for the weekend and one for weekdays) and set the Check peroid option to use the appropriate time period.

Re: Creating a weekend or after hours config file

Posted: Wed Jul 11, 2018 3:33 pm
by itadmins
Would this mean I have to go into each host/service everytime and switch it to weekend everytime? I'd like to automate it.

Re: Creating a weekend or after hours config file

Posted: Wed Jul 11, 2018 4:50 pm
by scottwilkerson
I don't think I would make multiple commands, and services, timeperiods, that is extremely complicated when what you really are looking for is reducing alerts on the Weekend...

I would create the weekend time period, but then, run the CCM -> Tools -> Escalation Wizard
Select that time period, and you can specify same or different contact and a much longer "Notification Interval"

More info about escalations
https://assets.nagios.com/downloads/nag ... ations.pdf