Hello Kwame,<br><br><div class="gmail_quote">On Tue, May 29, 2012 at 9:49 AM, Kwame Saidi <span dir="ltr"><<a href="mailto:k.saidi@zantel.co.tz" target="_blank">k.saidi@zantel.co.tz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="EN-US"><div>
<span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"></span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Am using centos. Mail.log is not existing</span>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> </span></p></div></div></blockquote><div>Thank you for reminding me of your OS, mail.log is for debian :-)<br>
</div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div link="blue" vlink="purple" lang="EN-US"><div><p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)"><u></u></span></p>
<span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"></span> <span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">25/tcp open smtp<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">80/tcp open http<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">110/tcp open pop3<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">111/tcp open rpcbind<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">143/tcp open imap<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">443/tcp open https<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">465/tcp open smtps<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">587/tcp open submission</span></p></div></div></blockquote><div><br>From the stat you have your mail server active and running<br>
<br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div link="blue" vlink="purple" lang="EN-US"><div><div class="im">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"># Do not remove the following line, or various programs<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"># that require network functionality will fail.<u></u><u></u></span></p>
</div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">127.0.0.1 localhost.localdomain localhost<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">::1 localhost6.localdomain6 localhost6<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">10.5.2.13 <a href="http://nagios.mydomain.com" target="_blank">nagios.mydomain.com</a><u></u><u></u></span></p>
<div class="im">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""></span></p></div></div></div></blockquote><div><br>You have not added nagios to the entry of your /etc/hosts make this line like this: <span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><br>
10.5.2.13 <a href="http://nagios.mydomain.com" target="_blank">nagios.mydomain.com</a></span> nagios (i assume your hostname is still nagios right)<br> <br>After you have done the above, restart the mail server and then send a mail via cli using the following syntax:<br>
echo "your messages" | mail -s "your subject" <a href="mailto:k.saidi@zantel.co.tz">k.saidi@zantel.co.tz</a> (hope you have mutt installed, if not install it then run the command). Check whether the mail was delivered. Then we can face nagios <br>
<br>Cheers!<br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div link="blue" vlink="purple" lang="EN-US"><div><div class="im"><p class="MsoNormal">
<span style="font-size:11pt;font-family:"Calibri","sans-serif""> </span><br clear="all"></p></div></div></div></blockquote></div><br>-- <br>------------------------------------------------------------------------<br>
<font color="#888888"><blockquote style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex;font-family:garamond,serif">
<i><span style="color:rgb(0,102,0)">Seun Ojedeji,<br style="color:rgb(0,102,0)"></span><span style="color:rgb(0,102,0)">Federal University Oye-Ekiti<br style="color:rgb(0,102,0)"></span><span style="color:rgb(0,102,0)">web: </span><a href="http://www.fuoye.edu.ng" target="_blank">http://www.fuoye.edu.ng</a><br>
<span style="color:rgb(0,102,0)"></span><span style="color:rgb(0,102,0)">Mobile: <a value="+2348035233535">+2348035233535</a></span><span style="color:rgb(0,102,0)"></span><br></i><i><span style="color:rgb(0,102,0)">alt email:<a href="http://goog_1872880453" target="_blank"> </a><a href="mailto:seun.ojedeji@fuoye.edu.ng" target="_blank">seun.ojedeji@fuoye.edu.ng</a></span></i><br>
</blockquote></font><br><br>