How do I limit notifications for one event?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
jbruyet
Posts: 235
Joined: Wed Dec 28, 2011 12:14 pm

How do I limit notifications for one event?

Post by jbruyet »

Hey all, whenever there's a lengthy event on a computer being monitored by my Nagios server I receive many, many notifications. For example, if a co-worker goes home and he turns off his computer I get several notifications advising me that the computer is down (I just pulled a four day weekend and had several thousand notifications, and that's with about 60 computers and eight servers). I was just looking through some of the Notifications documentation to see how to limit notifications to just two but I couldn't find anything to do that. There must be a way to do that but I can't see anything. Have any of you reconfigured your Nagios notifications so that you only get one or two notifications for lengthy events? If so please point me to some documentation so I can get my server configured that way.

Thanks,

Joe B
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: How do I limit notifications for one event?

Post by jsmurphy »

Well... there are ways of solving this problem, but there's no native "max_notifications" style configuration option.

1. Create two contact objects, one for business hours and one for out of hours with different notification intervals.

2. You could also do this by using host/service escalations and escalating to a dummy contact that has no contact details/doesn't receive notifications. http://nagios.sourceforge.net/docs/3_0/escalations.html
jbruyet
Posts: 235
Joined: Wed Dec 28, 2011 12:14 pm

Re: How do I limit notifications for one event?

Post by jbruyet »

Thanks jsmurphy. I figured that since I couldn't find anything relating to "max_notifications" then it probably didn't exist. I'll look into your two options.

Thanks,

Joe B
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: How do I limit notifications for one event?

Post by jsmurphy »

I had a third idea... you could use an eventhandler to acknowledge the problems if it's in a hard state and out of business hours. At any rate I'm sure you will find a way to solve it :mrgreen:
theteck
Posts: 6
Joined: Wed May 30, 2012 11:12 pm

Re: How do I limit notifications for one event?

Post by theteck »

if you set a dependency for eatch server ... when one in the chain go down you dont receive all other server in chain reaction !
Locked