Page 1 of 1

How to stop alerts for a service of all hosts?

Posted: Sun Jan 05, 2020 4:58 am
by rtsupport
Hi Support Team,

There is Antivirus scan runs on all windows server and we gets CPU High alerts for those servers. We want to stop those alerts for a specific time (i.e. every Sunday 4am to 11 am) of all Windows servers. Please check and let us know the solution for this issue.

Thanks

Re: How to stop alerts for a service of all hosts?

Posted: Mon Jan 06, 2020 10:09 am
by lmiltchev
You could set up a "custom" notification period for your CPU/Load services, which will NOT include 4am to 11 am time range on Sundays.
Service - notification period

This directive is used to specify the short name of the time period during which notifications of events for this service can be sent out to contacts. No service notifications will be sent out during times which is not covered by the time period.
You could set this notification period by going to CCM > Alerting > Time Periods. Name it whatever you want as long as you can find it easily later.

Example:

Code: Select all

define timeperiod {
    timeperiod_name         Antivirus
    alias                   Don't notify on Sundays 4am to 11am
    sunday                  00:00-04:00,11:00-24:00
    monday                  00:00-24:00
    tuesday                 00:00-24:00
    wednesday               00:00-24:00
    thursday                00:00-24:00
    friday                  00:00-24:00
    saturday                00:00-24:00
}
One you have the time period set up, you could add it to your services in bulk, using the Bulk Mod tool (CCM > Tools > Bulk Modifications Tool > Change a Single Config Option > Notification Period > <Antivirus> > Select Services)
example01.PNG
If you don't have Nagios XI Enterprise Edition or your trial is expired, you would have to add your newly created notification period manually to each CPU/Load service you need to under the Core Config Manager (CCM).
example02.PNG
Hope this helps.