How to stop alerts for a service of all hosts?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rtsupport
Posts: 188
Joined: Mon Jan 08, 2018 4:30 am

How to stop alerts for a service of all hosts?

Post 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
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

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

Post 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.
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked