Hi all,

I recently upgraded my nagios 2.x to 3.x. Nagios' preflight-check runs fine.

For service notification i use this event handler:

/usr/bin/printf "%b" "***** Nagios ***** Notification Type:
$NOTIFICATIONTYPE$ Service: $SERVICEDESC$ Host: $HOSTALIAS$ Address:
$HOSTADDRESS$ State: $SERVICESTATE$ Date/Time: $LONGDATETIME$ Additional
Info: $SERVICEOUTPUT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Service
Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$

If nagios runs a "service event handler" the only recipient is '$'

nagios.log:
SERVICE ALERT: oldmz-main-01;Jira Webservice;CRITICAL;SOFT;1;CRITICAL -
Socket timeout after 10 seconds
[1236690758] SERVICE EVENT HANDLER: oldmz-main-01;Jira
Webservice;(null);(null);(null);notify-by-email

corresponding mail.log entry:
369EEA4246: uid=117 from=<nagios>
369EEA4246: message-id=<20090310131338.369eea4...@domain>
369EEA4246: from=<nag...@domain>, size=635, nrcpt=1 (queue active)
369EEA4246: to=<mailerr...@domain>, orig_to=<$>,
relay=mail.domain[192.168.xx.xx]:25,
delay=0.1, delays=0.03/0/0.01/0.06, dsn=2.6.0, status=sent (250 2.6.0
<20090310131338.369eea4...@domain> Queued mail for delivery)
369EEA4246: removed

But the service entry has a valid contactgroup system.admins in which
are 4 persons with valid email addresses.

I can provide my configuration files if you need them.

Why does nagios send to '$'?

Regards Udo



------------------------------------------------------------------------------
_______________________________________________
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Reply via email to