notifications are missing information

Mark Andrews mandrews at dkp.com
Fri Jun 24 21:07:42 CEST 2005


Jamie Bohr wrote:

> I just upgraded to Nagios 2b3 and have found that notifications are 
> not missing information.
>
> For example Date/Time and Additional information are missing information:
>
>***** Nagios  *****
>
>Notification Type: ACKNOWLEDGEMENT
>
>Service: httpd
>Host: xxx
>Address: XXXXXXX
>State: WARNING
>
>Date/Time: $
>
>Additional Info:
>
>$
>  
>
>
> I use the default command to notify:
>
>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$" | /bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
>}
>  
>
>
> I have searched to list archive but have not found any thing that 
> guides me to an answer.  The addition information shows up as comments 
> on the web page.  Please point me in the right direction.

In the 'notify-by-email' command, change $OUTPUT$ to $SERVICEOUTPUT$.

In the 'host-notify-by-email' command, change $OUTPUT$ to $HOSTOUTPUT$.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20050624/27040d92/attachment.html>


More information about the Users mailing list