no details in alert emails.

Bill Akins Bill_Akins at emoryhealthcare.org
Wed Mar 30 18:55:57 CEST 2005


I had the same problem.  The variables have changed in 2.x.
 
Try  $SHORTDATETIME$ and $SERVICEOUTPUT$ in the misccommands.cfg file
 
Mine look like this:
# 'notify-by-email' command definition
define command{
        command_name    notify-by-email
        command_line    /usr/bin/printf "%b" "***** Nagios 
*****\n\nNotification Type: $NOTIFICATIONTYPE
$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress:
$HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Tim
e: $SHORTDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /bin/mail
-s "** $NOTIFICATIONTYPE$ alert -
$HOSTNAME$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
        }
 
HTH!


>>> "Rodney Caston" <rodney.caston at match.com> 3/30/2005 11:26 AM >>>

Since upgrading to the new new 2.0b2 release, nagios has began sending
out pages in the following format:

####################
***** Nagios  *****

Notification Type: PROBLEM

Service: SMTP
Host:  mailhost
Address: 192.168.1.100
State: CRITICAL

Date/Time: $

Additional Info:

$
###################

For some reason the Date/Time and the Additional Info fields are now
showing up as a $ instead of the values they should be.

Any thoughts?



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real
users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20050330/201277f6/attachment.html>


More information about the Users mailing list