Nagios Notifications /w event-handlers

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
peter.romfeld.hk
Posts: 7
Joined: Wed Sep 11, 2013 11:24 pm

Nagios Notifications /w event-handlers

Post by peter.romfeld.hk »

Hey,

is there a other way to get notifications, then just adding it to the eventhandler command with && ?
it looks like the event-handler resolves the problem before the notifications triggers, but i would like to get this information's sended. preferd without adding the sendmail to every event-handler.

Cheers,
Peter
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Nagios Notifications /w event-handlers

Post by sreinhardt »

You could alter the script or create a new script that executes the event handler and then sends a notification, or vise versa. It really depends how you would like to do it. However if your handler is resolving the issue prior the service or host state going critical, this would explain why your notification is not being sent.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked