[afnog] Nagios support

Kwame Saidi k.saidi at zantel.co.tz
Sat May 26 12:56:01 UTC 2012


Thanks all for explanation.

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 ?

Below are the logs ;


root at localhost ~]# tail -f /var/log/maillog
May 24 11:16:22 nagios sendmail[13393]: My unqualified host name (nagios) unknown; sleeping for retry
May 24 11:17:01 nagios sendmail[13489]: My unqualified host name (nagios) unknown; sleeping for retry
May 24 11:17:34 nagios sendmail[13495]: My unqualified host name (nagios) unknown; sleeping for retry
May 24 11:18:04 nagios sendmail[13501]: My unqualified host name (nagios) unknown; sleeping for retry
May 24 11:18:42 nagios sendmail[13507]: My unqualified host name (nagios) unknown; sleeping for retry
May 24 11:45:47 nagios sendmail[15615]: My unqualified host name (nagios) unknown; sleeping for retry
May 24 11:47:05 nagios sendmail[15688]: My unqualified host name (nagios) unknown; sleeping for retry
May 24 11:47:45 nagios sendmail[15694]: My unqualified host name (nagios) unknown; sleeping for retry


[root at localhost ~]# tail -f /usr/local/nagios/var/nagios.log
[1338036435] Local time is Sat May 26 15:47:15 EAT 2012
[1338036435] LOG VERSION: 2.0
[1338036435] Finished daemonizing... (New PID=2325)
[1338036476] HOST NOTIFICATION: nagiosadmin;Allot-server;DOWN;notify-host-by-email;(Host Check Timed Out)
[1338036486] HOST NOTIFICATION: nagiosadmin;Auvionics;DOWN;notify-host-by-email;(Host Check Timed Out)
[1338036506] HOST NOTIFICATION: nagiosadmin;BOL-ARS;DOWN;notify-host-by-email;(Host Check Timed Out)
[1338036516] HOST NOTIFICATION: nagiosadmin;BOL-DAR;DOWN;notify-host-by-email;(Host Check Timed Out)
[1338036536] HOST NOTIFICATION: nagiosadmin;DAR-PE;DOWN;notify-host-by-email;(Host Check Timed Out)



 
Regards,
 
-- Kwame Saidi
Mobile 0777899994
Zantel.
 

-----Original Message-----
From: Hervey Allen [mailto:hervey at nsrc.org] 
Sent: Friday, May 25, 2012 23:54
To: Kwame Saidi
Cc: afnog at afnog.org
Subject: Re: [afnog] Nagios support

On 5/25/12 8:59 AM, Kwame Saidi wrote:
> Greetings..!!
> 
>  
> 
> I have installed nagios on centos,its running but unfortunately it's not
> sending notification email (from the contacts.cfg  I have changed to my
> email but still am unable to receive emails)and sound alert is not
> functioning as well,
> 

Hi Kwame,
	If you determine that you can send email from the CentOS box on which
Nagios is running, then be sure that you have specified the contact
group or contacts option for the service or host that you want to be
notified for when something happens.

For example, to be notified by host specify either contact or a
contact_groups in the host definition:

http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#host

Or, if by service:

http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#service

Or, for things like serviceescalation, hostescalation,

http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html

Cheers,
	- Hervey

-- 
Hervey Allen      Network Startup Resource Center
hervey at nsrc.org   http://nsrc.org/ : http://facebook.com/nsrc.org
GPG Fingerprint:  AC08 31CB E453 6C65 2AB3 4EDB CEEB 5A74 C6E5 624F
-------------- next part --------------
This email is Virus free! Has been Scanned.


More information about the afnog mailing list