<HTML>
<HEAD>
<TITLE>No Email Notifications</TITLE>
</HEAD>
<BODY>
<FONT FACE="Arial"><SPAN STYLE='font-size:12.0px'>Hi Everyone,<BR>
<BR>
I am having some problems getting email notifications on a new Nagios server I just built. I have only setup PING and SMTP checks to see if everything is working properly. The Event Log on the web interface shows the following message:<BR>
<BR>
[02-05-2008 17:14:02] Warning: Attempting to execute the command "/usr/bin/mail/printf "%b" "***** Nagios 2.6 *****\n\nNotification Type: PROBLEM\nHost: SMTP\nState: DOWN\nAddress: <IP ADDRESS>\nInfo: PING CRITICAL - Packet loss = 100%\n\nDate/Time: Tue Feb 5 17:14:02 EST 2008\n" | -s "Host DOWN alert for SMTP!" <EMAIL ADDRESS>" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...<BR>
<BR>
I ran apt-get mailx as per someone’s instructions in order to get email notifications and also changed /bin/mail to /usr/bin/mail in commands.cfg specifically in the email notifications section.<BR>
<BR>
Any ideas on how to get email notifications fixed?<BR>
<BR>
Thanks.</SPAN></FONT>
</BODY>
</HTML>