Page 1 of 1

notifications from the nagios server

Posted: Thu Jun 29, 2017 8:26 pm
by sunnynani4849
Hi ,

we got a requirement on notifications from the nagios server.
"Nagios should send only 1 notification at the time of warning alert generated and it should not re-notify" and for the critical alert they need to get the notification for 60 min until it is cleared.
Is it possible to do such type changes

Re: notifications from the nagios server

Posted: Thu Jun 29, 2017 9:44 pm
by tacolover101
set your notification_interval for 0, which will send right away, and only once.

Re: notifications from the nagios server

Posted: Fri Jun 30, 2017 9:11 am
by mcapra
There is no way to distinguish separate notification intervals for Warning VS Critical states, though.

There was some discussion around (unofficially) resurrecting an old Nagios Core 3 patch that added this sort of functionality though:
https://support.nagios.com/forum/viewto ... =7&t=44274

Re: notifications from the nagios server

Posted: Fri Jun 30, 2017 10:26 am
by dwhitfield
mcapra wrote: There was some discussion around (unofficially) resurrecting an old Nagios Core 3 patch that added this sort of functionality though:
https://support.nagios.com/forum/viewto ... =7&t=44274
What version of Nagios are you using? You could just use that patch. Thanks @mcapra and @tacolover101!

Also, you could run this logic in an event handler, but the event handler is going to run each time, so all the logic needs to be in the one script (or have that opening script call out to additional scripts)