notification not sending

Viraxay Chinyavong sy at echolabs.net
Sat Aug 21 03:45:03 CEST 2004


Hi,

I hope someone can help me with this problem. I'm running Nagio 1.2 on
Fedora core1 and Stalker CGPro Mail. It seems to work fine if I just run
this command "/bin/mail -s "Host DOWN alert for Bogus" admin at echolabs.net"
manually but it won't work from Nagios even though the log says it sent the
email. Can someone tell me what I'm doing wrong or if my miscommand.cfg is
wrong? Below is my config.

Many thanks!

# 'host-notify-by-email' command definition
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$\nInfo: $OUTPUT$\n\nDate/Time:
$DATETIME$\n" | /bin/mail -s "Host $HOSTSTATE$ alert for $HOSTNAME$"
$CONTACTEMAIL$
        }







-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
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