No email alerts ??

Nedim Bicic nedo72 at gmail.com
Wed Oct 3 22:17:56 CEST 2007


Hey all have nagios 2.9 running linux red hat enterprise 4 the email for
nagios sending notifications arent working for some reason i know the box
can send email because the it has the MTA agent installed cuase i can send
other emials from that machine

I can see host down in nagios webpage i have the contact groups set
appropritaley and of course my email address in contacts group i even did a
sanity check to see if i have any syntex errors nothing so far.

this is what i have in commands.cfg file under emails:

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

and i also took out the option not to notify in my host file.

something has to be tweaked for sure any help

thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20071003/0c34b677/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
-------------- 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