Hello Kwame,<br><br><div class="gmail_quote">On Mon, Jun 4, 2012 at 12:37 PM, 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>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Seun<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Am still facing the same problem , I installed centreon and trying to add hosts from there but still I can’t  receive notification when host is down neither
 sound alert. <u></u><u></u></span></p><div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> </span></p></div></div></div></blockquote><div><br>Sorry to hear about this, it can be fraustrating at times when things don't work as expected and we wish we could see the problem physically and cure it :)   <br>
Here is what i will suggest kwame, when things happen this way i did normally just start afresh(especially if you don't have any other resource running on the server). Below is a link for the NM 2011, i suggest you make use of this if you intend to go the route i suggested(this will make use of postfix as your MTA). I can guarantee that you will be good(thanks to the NSRC guys for putting up the great guide)<br>
<br><a href="https://nsrc.org/workshops/2011/afnog-nm/wiki/Agenda">https://nsrc.org/workshops/2011/afnog-nm/wiki/Agenda</a><br><br>refer to : Nagios (Availability)                and Nagios, Cacti, Smokeping & Tickets   <br>
<br>I have used those manual in quite a number of time without any problem.<br><br>All the Best<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><p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)"><u></u></span></p>


<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> <u></u><u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#17365d">Regards,</span></b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><u></u><u></u></span></p>


<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> <u></u><u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#17365d">-- Kwame Saidi</span></b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><u></u><u></u></span></p>


<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#17365d">Mobile 0777899994</span></b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><u></u><u></u></span></p>


<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#17365d">Zantel.</span></b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><u></u><u></u></span></p>


<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> <u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
</div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Seun Ojedeji [mailto:<a href="mailto:seun.ojedeji@gmail.com" target="_blank">seun.ojedeji@gmail.com</a>]
<br>
<b>Sent:</b> Monday, June 04, 2012 14:21</span></p><div><div><br>
<b>To:</b> Kwame Saidi<br>
<b>Cc:</b> Hervey Allen; <a href="mailto:afnog@afnog.org" target="_blank">afnog@afnog.org</a><br>
<b>Subject:</b> Re: [afnog] Nagios support<u></u><u></u></div></div><p></p>
</div><div><div>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hello Kwame,<br>
<br>
As an administrator, i assume you must have gotten the problem fixed(trust giving up is not in your dictionary :)<br>
<br>
Perhaps it will be good to hear how you got it fixed?<br>
<br>
Cheers!<u></u><u></u></p>
<div>
<p class="MsoNormal">On Tue, May 29, 2012 at 1:16 PM, Seun Ojedeji <<a href="mailto:seun.ojedeji@gmail.com" target="_blank">seun.ojedeji@gmail.com</a>> wrote:<u></u><u></u></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi Kwame,<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">On Tue, May 29, 2012 at 12:49 PM, Kwame Saidi <<a href="mailto:k.saidi@zantel.co.tz" target="_blank">k.saidi@zantel.co.tz</a>> wrote:<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Seun</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I installed mutt , I send the test email from the cli  and below are the output from the logs.</span><u></u><u></u></p>


<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">[root@nagios ~]# tail -f /var/log/maillog | grep
<a href="mailto:k.saidi@zantel.co.tz" target="_blank">k.saidi@zantel.co.tz</a></span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">May 29 14:41:55 mx sendmail[8792]: q4TBftxg008792: to=<a href="mailto:k.saidi@zantel.co.tz" target="_blank">k.saidi@zantel.co.tz</a>,
 ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30062, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (OK id=1SZKoF-0002Hp-GU)</span><u></u><u></u></p>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p>
</div>
</div>
</div>
</div>
<div>
<p class="MsoNormal">This showed that the mail server is now ok,  although i think its strange that your relay is a loopback address (is the recipient address within the same network OR  on your mail server itself) anyway hope the mail got delivered to your
 box? <br>
<br>
Now try to trigger a nagios alert and post the output of your maillog again. Let see ;)<u></u><u></u></p>
</div>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span>
<u></u><u></u></p>
</div>
</div>
</div>
</blockquote>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> </span><u></u><u></u></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#17365d">Regards,</span></b><u></u><u></u></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#17365d">-- Kwame Saidi</span></b><u></u><u></u></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#17365d">Mobile 0777899994</span></b><u></u><u></u></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#17365d">Zantel.</span></b><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p>
</div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Seun Ojedeji [mailto:<a href="mailto:seun.ojedeji@gmail.com" target="_blank">seun.ojedeji@gmail.com</a>]
<br>
<b>Sent:</b> Tuesday, May 29, 2012 13:19</span><u></u><u></u></p>
<div>
<p class="MsoNormal"><br>
<b>To:</b> Kwame Saidi<br>
<b>Cc:</b> Hervey Allen; <a href="mailto:afnog@afnog.org" target="_blank">afnog@afnog.org</a><br>
<b>Subject:</b> Re: [afnog] Nagios support<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hello Kwame,<u></u><u></u></p>
<div>
<div>
<div>
<p class="MsoNormal">On Tue, May 29, 2012 at 9:49 AM, Kwame Saidi <<a href="mailto:k.saidi@zantel.co.tz" target="_blank">k.saidi@zantel.co.tz</a>> wrote:<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Am using centos. Mail.log is not existing</span>
<u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal">Thank you for reminding me of your OS, mail.log is for debian :-)<u></u><u></u></p>
</div>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt">
<div>
<div>
<p class="MsoNormal"> <span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span>
<u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">25/tcp   open  smtp</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">80/tcp   open  http</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">110/tcp  open  pop3</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">111/tcp  open  rpcbind</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">143/tcp  open  imap</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">443/tcp  open  https</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">465/tcp  open  smtps</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">587/tcp  open  submission</span><u></u><u></u></p>
</div>
</div>
</blockquote>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
>From the stat you have your mail server active and running<u></u><u></u></p>
</div>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt">
<div>
<div>
<div>
<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</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"># that require network functionality will fail.</span><u></u><u></u></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</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">::1             localhost6.localdomain6 localhost6</span><u></u><u></u></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></span><u></u><u></u></p>
</div>
</div>
</blockquote>
<div>
<p class="MsoNormal"><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" target="_blank">
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!<u></u><u></u></p>
</div>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt">
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> </span><br clear="all">
<u></u><u></u></p>
</div>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><br>
-- <br>
------------------------------------------------------------------------<u></u><u></u></p>
<p class="MsoNormal"><i><span style="font-family:"Garamond","serif";color:#006600">Seun Ojedeji,<br>
Federal University Oye-Ekiti<br>
web:      </span></i><i><span style="font-family:"Garamond","serif";color:#888888"><a href="http://www.fuoye.edu.ng" target="_blank">http://www.fuoye.edu.ng</a><br>
</span></i><i><span style="font-family:"Garamond","serif";color:#006600">Mobile: <a href="tel:%2B2348035233535" target="_blank">
+2348035233535</a></span></i><i><span style="font-family:"Garamond","serif";color:#888888"><br>
</span></i><i><span style="font-family:"Garamond","serif";color:#006600">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><u></u><u></u></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"> <u></u><u></u></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<div>
<p class="MsoNormal">This email is Virus free! Has been Scanned.<u></u><u></u></p>
</div>
</blockquote>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><br>
-- <br>
------------------------------------------------------------------------<span style="color:#888888"><u></u><u></u></span></p>
<p class="MsoNormal"><i><span style="font-family:"Garamond","serif";color:#006600">Seun Ojedeji,<br>
Federal University Oye-Ekiti<br>
web:      </span></i><i><span style="font-family:"Garamond","serif";color:#888888"><a href="http://www.fuoye.edu.ng" target="_blank">http://www.fuoye.edu.ng</a><br>
</span></i><i><span style="font-family:"Garamond","serif";color:#006600">Mobile: <a href="tel:%2B2348035233535" value="+2348035233535" target="_blank">+2348035233535</a></span></i><i><span style="font-family:"Garamond","serif";color:#888888"><br>


</span></i><i><span style="font-family:"Garamond","serif";color:#006600">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><span style="font-family:"Garamond","serif";color:#888888"><u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p>
</div>
</div>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<br>
-- <br>
------------------------------------------------------------------------<span style="color:#888888"><u></u><u></u></span></p>
<p class="MsoNormal"><i><span style="font-family:"Garamond","serif";color:#006600">Seun Ojedeji,<br>
Federal University Oye-Ekiti<br>
web:      </span></i><i><span style="font-family:"Garamond","serif";color:#888888"><a href="http://www.fuoye.edu.ng" target="_blank">http://www.fuoye.edu.ng</a><br>
</span></i><i><span style="font-family:"Garamond","serif";color:#006600">Mobile: <a href="tel:%2B2348035233535" value="+2348035233535" target="_blank">+2348035233535</a></span></i><i><span style="font-family:"Garamond","serif";color:#888888"><br>


</span></i><i><span style="font-family:"Garamond","serif";color:#006600">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><span style="font-family:"Garamond","serif";color:#888888"><u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p>
</div></div></div>
</div>

<br>This email is Virus free! Has been Scanned.<br></blockquote></div><br><br clear="all"><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>