notifications from the nagios server

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
sunnynani4849
Posts: 31
Joined: Fri Jan 22, 2016 1:04 am

notifications from the nagios server

Post 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
User avatar
tacolover101
Posts: 432
Joined: Mon Apr 10, 2017 11:55 am

Re: notifications from the nagios server

Post by tacolover101 »

set your notification_interval for 0, which will send right away, and only once.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: notifications from the nagios server

Post 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
Former Nagios employee
https://www.mcapra.com/
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: notifications from the nagios server

Post 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)
Locked