<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>e-mail notifications not being sent</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">Hi there --</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I completed the installation of Nagios 3.3.1, and I am going through the testing process. The server is able to successfully monitor</FONT></P>

<P><FONT SIZE=2 FACE="Arial">our various clients, but e-mail notifications for critical conditions are not being sent to the intended recipient. The e-mail server that</FONT></P>

<P><FONT SIZE=2 FACE="Arial">is on the Nagios server is the Postfix message transfer agent. </FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">The troubleshooting steps that I have taken so far are the following:</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">1. I have been able to send a test e-mail from the Nagios server to the intended recipient using two different mail commands. The test </FONT></P>

<P><FONT SIZE=2 FACE="Arial">    e-mail was done from the command line using the mail and mailx commands using the command syntax:</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">mail <e-mail address> < /etc/fstab </FONT>

<BR><FONT SIZE=2 FACE="Arial">mailx -s "test" <e-mail address> < /etc/fstab</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">2. I checked the contacts.cfg file, and confirmed the intended recipient is listed with the correct address.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">3. I checked the nagios.log, and there were entries that were similar to the following:</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">[1321385615] Warning: Attempting to execute the command "/usr/bin/printf "%b" "***** Nagios 2.6 *****\n\nNotification Type: PROBLEM\nHost: ... Date/Time: Tue Nov 15 14:33:35 EST 2011\n" | </FONT></P>

<P><FONT SIZE=2 FACE="Arial">/bin/mail -…<e-mail address>" resulted in a return code of 127.  Make sure the script or binary you are trying to execute actually exists…</FONT></P>

<P><FONT SIZE=2 FACE="Arial">I did a search for the mail binary, and there was none at that location. To correct the problem, I created a symbolic that pointed to the actual </FONT></P>

<P><FONT SIZE=2 FACE="Arial">location of the mail binary which was located at the /usr/bin/ folder.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">4. As far as I can tell, all hosts have e-mail notifications enabled on them.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">What other steps do I need to take in order to get e-mail notifications to work here?</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Thanks. </FONT>
</P>
<BR>

<font face="monospace"><br>
<br>
The information in this e-mail is intended only for the person to whom it is<br>
addressed. If you believe this e-mail was sent to you in error and the e-mail<br>
contains patient information, please contact the Partners Compliance HelpLine at<br>
http://www.partners.org/complianceline . If the e-mail was sent to you in error<br>
but does not contain patient information, please contact the sender and properly<br>
dispose of the e-mail.</font></BODY>
</HTML>