Email Notifications missing $DATETIME$ and $OUTPUT$

Lawrence, Lynne Lynne.G.Lawrence at uscg.mil
Tue Jan 24 13:51:13 CET 2006


Though these macros are valid for Nagios 1.x, they do not appear to be
supported for Nagios 2.x.  If using Nagios 2.x, consult the doc on
macros.

Regards,

Lynne Lawrence 
QSS/USCG 

> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net 
> [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf 
> Of Rex Chan
> Sent: Tuesday, January 24, 2006 12:46 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Email Notifications missing 
> $DATETIME$ and $OUTPUT$
> 
> Hi, I was wondering if anybody has encountered this problem with 
> notifications before,
> and know what is causing it.
> 
> These variables appear on the nagios web interface, but  nagios seems 
> to have a problem putting them into the email.
> 
> The notification command is the default notify-by-email command:
> 
> 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/Time: $DATETIME$\n\nAdditional 
> Info:\n\n$OUTPUT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ alert - 
> $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
> }
> 
> Here is an example of the emails that are missing the information.
> 
> ***** Nagios  *****
> 
> Notification Type: RECOVERY
> 
> Service: check-backups
> Host: office network server
> Address:
> State: OK
> 
> Date/Time: $
> 
> Additional Info:
> 
> $
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep 
> through log files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  
> DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&
> dat=121642
> _______________________________________________
> 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
> 


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
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





More information about the Users mailing list