Email Notifications

Gregory Wong gwong at wong-consulting.com
Fri Feb 15 00:21:37 CET 2008


Hi Everyone,

I am having a problems with email notifications. They are not being sent.
Below is the command from the commands.cfg that is being executed. I changed
/usr/bin/printf to /usr/bin/mail. Is this wrong?

Thanks.

define command{
        command_name    host-notify-by-email
        command_line    /usr/bin/mail "%b" "***** Nagios 2.6
*****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState:
$HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time:
$LONGDATETIME$\n" |  -s "Host $HOSTSTATE$ alert for $HOSTNAME$!"
$CONTACTEMAIL$
        }



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20080214/08934663/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
-------------- next part --------------
_______________________________________________
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