Additional Info in email notification

Toto Capuccino shoktai at gmail.com
Fri Feb 10 12:30:30 CET 2006


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>:
>
>
> Hi, there
>
> I would to include additional info into email notification!
> What can I do?
>
> This is the email that nagios sends me.
>
>
>
> ------------------------------------------------------------------------
> **** Nagios  *****
>
> Notification Type: PROBLEM
>
> Service: Ping
> Host: myhost
> Address: IP
> State: CRITICAL
>
> Date/Time: Fri Feb 10 11:14:20 CET 2006
>
> Additional Info:
>
> $
> ------------------------------------------------------------------------
>
>
> Ths
>
> ------------------------------------------------------------
> Sei stanco di girare a vuoto?
> Con il nuovo motore di ricerca Interfree trovi di tutto.
> Vieni a trovarci: http://search.interfree.it/
>
> Lo Staff di Interfree
> ------------------------------------------------------------
>
>
>
> -------------------------------------------------------
> 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
>



--
Le bon sens est la chose du monde la mieux partagée.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060210/4a3b6c16/attachment.html>


More information about the Users mailing list