Hello Kwame, <br><br>What is the output of your cat /etc/nagios3/commands.cfg<br><br>Cheers!<br><br><div class="gmail_quote">On Sat, May 26, 2012 at 1:56 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">Thanks all for explanation.<br>
<br>
May be I need to know something. From the server I installed nagios should I configure local mailserver like postfix or sendmail or I may use email addres that's located on the another server ?<br>
<br>
Below are the logs ;<br>
<br>
<br>
root@localhost ~]# tail -f /var/log/maillog<br>
May 24 11:16:22 nagios sendmail[13393]: My unqualified host name (nagios) unknown; sleeping for retry<br>
May 24 11:17:01 nagios sendmail[13489]: My unqualified host name (nagios) unknown; sleeping for retry<br>
May 24 11:17:34 nagios sendmail[13495]: My unqualified host name (nagios) unknown; sleeping for retry<br>
May 24 11:18:04 nagios sendmail[13501]: My unqualified host name (nagios) unknown; sleeping for retry<br>
May 24 11:18:42 nagios sendmail[13507]: My unqualified host name (nagios) unknown; sleeping for retry<br>
May 24 11:45:47 nagios sendmail[15615]: My unqualified host name (nagios) unknown; sleeping for retry<br>
May 24 11:47:05 nagios sendmail[15688]: My unqualified host name (nagios) unknown; sleeping for retry<br>
May 24 11:47:45 nagios sendmail[15694]: My unqualified host name (nagios) unknown; sleeping for retry<br>
<br>
<br>
[root@localhost ~]# tail -f /usr/local/nagios/var/nagios.log<br>
[1338036435] Local time is Sat May 26 15:47:15 EAT 2012<br>
[1338036435] LOG VERSION: 2.0<br>
[1338036435] Finished daemonizing... (New PID=2325)<br>
[1338036476] HOST NOTIFICATION: nagiosadmin;Allot-server;DOWN;notify-host-by-email;(Host Check Timed Out)<br>
[1338036486] HOST NOTIFICATION: nagiosadmin;Auvionics;DOWN;notify-host-by-email;(Host Check Timed Out)<br>
[1338036506] HOST NOTIFICATION: nagiosadmin;BOL-ARS;DOWN;notify-host-by-email;(Host Check Timed Out)<br>
[1338036516] HOST NOTIFICATION: nagiosadmin;BOL-DAR;DOWN;notify-host-by-email;(Host Check Timed Out)<br>
[1338036536] HOST NOTIFICATION: nagiosadmin;DAR-PE;DOWN;notify-host-by-email;(Host Check Timed Out)<br>
<div class="im HOEnZb"><br>
<br>
<br>
 <br>
Regards,<br>
 <br>
-- Kwame Saidi<br>
Mobile 0777899994<br>
Zantel.<br>
 <br>
<br>
</div><div class="HOEnZb"><div class="h5">-----Original Message-----<br>
From: Hervey Allen [mailto:<a href="mailto:hervey@nsrc.org">hervey@nsrc.org</a>]<br>
Sent: Friday, May 25, 2012 23:54<br>
To: Kwame Saidi<br>
Cc: <a href="mailto:afnog@afnog.org">afnog@afnog.org</a><br>
Subject: Re: [afnog] Nagios support<br>
<br>
On 5/25/12 8:59 AM, Kwame Saidi wrote:<br>
> Greetings..!!<br>
><br>
><br>
><br>
> I have installed nagios on centos,its running but unfortunately it's not<br>
> sending notification email (from the contacts.cfg  I have changed to my<br>
> email but still am unable to receive emails)and sound alert is not<br>
> functioning as well,<br>
><br>
<br>
Hi Kwame,<br>
        If you determine that you can send email from the CentOS box on which<br>
Nagios is running, then be sure that you have specified the contact<br>
group or contacts option for the service or host that you want to be<br>
notified for when something happens.<br>
<br>
For example, to be notified by host specify either contact or a<br>
contact_groups in the host definition:<br>
<br>
<a href="http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#host" target="_blank">http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#host</a><br>
<br>
Or, if by service:<br>
<br>
<a href="http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#service" target="_blank">http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#service</a><br>
<br>
Or, for things like serviceescalation, hostescalation,<br>
<br>
<a href="http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html" target="_blank">http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html</a><br>
<br>
Cheers,<br>
        - Hervey<br>
<br>
--<br>
Hervey Allen      Network Startup Resource Center<br>
<a href="mailto:hervey@nsrc.org">hervey@nsrc.org</a>   <a href="http://nsrc.org/" target="_blank">http://nsrc.org/</a> : <a href="http://facebook.com/nsrc.org" target="_blank">http://facebook.com/nsrc.org</a><br>
GPG Fingerprint:  AC08 31CB E453 6C65 2AB3 4EDB CEEB 5A74 C6E5 624F</div></div><br>This email is Virus free! Has been Scanned.<br>_______________________________________________<br>
afnog mailing list<br>
<a href="http://afnog.org/mailman/listinfo/afnog" target="_blank">http://afnog.org/mailman/listinfo/afnog</a><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>