Hello all, I've recently installed nagios 2.0 on Redhat 9, and I believe I have all configs setup correctly. Pre-flight check comes up ok and I check the nagios logs and the alerts show up, but for some reason I am not receiving any emails. I left the defaults for the "notify-by-email" command as described below:
# 'notify-by-email' command definition
define command{
command_name notify-by-email
command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS
$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /bin/mail -s "** $NOTIFICATION
TYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
}
Here is the context of my contacts.cfg:
define contact{
contact_name jeff
alias Jeff
contactgroups engsvcs
service_notification_period 24x7
host_notification_period 24x7
service_notification_options w,u,c,r,f,n
host_notification_options d,u,r,f,n
service_notification_commands notify-by-email
host_notification_commands host-notify-by-email
email
jeff.mylastname@mycompany.com
}
I have cronjobs that send mail to me, and my sendmail is definitely turned on...what else could I be missing???