Additional Info in email notification

Thibault Genessay tgenessay at aliadis.fr
Fri Feb 10 15:48:44 CET 2006


lkk at interfree.it wrote:

>I have already tried this but I don't to receive Additional Info.
>
>  
>
>>Hi,
>>try to put something like this in your miscommands.cfg file that should
>>contact the email notification command :
>>define command{
>>       command_name    host-notify-by-email
>>       command_line    /usr/bin/printf "%b" "***** Nagios
>>*****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState:
>>$HOSTSTATE$\nAddress: $HOSTADDRESS$\nAdditional Info: $OUTPUT$\n\nDate/Time: 
>>$DATETIME$\n" | /usr/bin/sendmail "Host $HOSTSTATE$ alert for $HOSTNAME$!"
>>$CONTACTEMAIL$
>>       }
>>
>>10 Feb 2006 10:44:26 -0000, lkk at interfree.it <lkk at interfree.it>: >
>>    
>>
>
>
>What can I do now?
>  
>
You don't have access to the $OUTPUT$  variable in the host notification 
(I don't even know if it actually exists). You should use $HOSTOUTPUT$ 
instead (and $SERVICEOUTPUT$ for your service-notify-by-email command)
See http://nagios.sourceforge.net/docs/2_0/macros.html

-- 

Thibault GENESSAY
ALIADIS
www.aliadis.fr
Tel.  0870 723 724
Fax   04 72 13 90 40 



-------------------------------------------------------
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





More information about the Users mailing list