[icinga-users] host is up notifications
soosthoek at nieuwland.nl
Fri Feb 8 15:49:03 CET 2013
On 02/08/2013 03:27 PM, Wolfgang wrote:
> It seems that it is NOT sent by Icinga but another process (crontab, eventhandler?) using values from Icinga. Who is the sender of the mails?
They are sent by user icinga, but there is no crontab for icinga (user)
or any crontab in /etc/cron*/ containing icinga.
I'm kind of glad I'm not the only one flabbergasted by this ;-)
BTW, the mails are coming today at hour:01, but I seem to recall
yesterday they came at hour:04, so a crontab wouldn't be likely.
Perhaps it's in my contact settings?
use generic-contact ;
Ah, right, that's my script :-)
That seems to work, but a little too well perhaps?
It's doing this:
set |grep ICINGA >/tmp/icinga-debug
if [[ -z "$ICINGA_CONTACTEMAIL" ]]; then
mutt -s "$ICINGA_NOTIFICATIONTYPE - $ICINGA_HOSTNAME is
$ICINGA_HOSTSTATE" "$ICINGA_CONTACTEMAIL" <<EOF
$ICINGA_NOTIFICATIONTYPE - Host $ICINGA_HOSTNAME is $ICINGA_HOSTSTATE
Notes: $ICINGA_NOTIFICATIONAUTHOR $ICINGA_NOTIFICATIONCOMMENT
Whenever it's called, it will send out an e-mail, regardless of the
state, but I guess that using a printf like construction, that will also
be the case?
More information about the icinga-users