[afnog] Nagios support

Kwame Saidi k.saidi at zantel.co.tz
Mon Jun 4 11:37:20 UTC 2012


Seun

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.





Regards,

-- Kwame Saidi
Mobile 0777899994
Zantel.


From: Seun Ojedeji [mailto:seun.ojedeji at gmail.com]
Sent: Monday, June 04, 2012 14:21
To: Kwame Saidi
Cc: Hervey Allen; afnog at afnog.org
Subject: Re: [afnog] Nagios support

Hello Kwame,

As an administrator, i assume you must have gotten the problem fixed(trust giving up is not in your dictionary :)

Perhaps it will be good to hear how you got it fixed?

Cheers!
On Tue, May 29, 2012 at 1:16 PM, Seun Ojedeji <seun.ojedeji at gmail.com<mailto:seun.ojedeji at gmail.com>> wrote:
Hi Kwame,
On Tue, May 29, 2012 at 12:49 PM, Kwame Saidi <k.saidi at zantel.co.tz<mailto:k.saidi at zantel.co.tz>> wrote:
Seun

I installed mutt , I send the test email from the cli  and below are the output from the logs.

[root at nagios ~]# tail -f /var/log/maillog | grep k.saidi at zantel.co.tz<mailto:k.saidi at zantel.co.tz>
May 29 14:41:55 mx sendmail[8792]: q4TBftxg008792: to=k.saidi at zantel.co.tz<mailto:k.saidi at zantel.co.tz>, 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)

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?

Now try to trigger a nagios alert and post the output of your maillog again. Let see ;)




Regards,
-- Kwame Saidi
Mobile 0777899994
Zantel.


From: Seun Ojedeji [mailto:seun.ojedeji at gmail.com<mailto:seun.ojedeji at gmail.com>]
Sent: Tuesday, May 29, 2012 13:19

To: Kwame Saidi
Cc: Hervey Allen; afnog at afnog.org<mailto:afnog at afnog.org>
Subject: Re: [afnog] Nagios support

Hello Kwame,
On Tue, May 29, 2012 at 9:49 AM, Kwame Saidi <k.saidi at zantel.co.tz<mailto:k.saidi at zantel.co.tz>> wrote:
Am using centos. Mail.log is not existing

Thank you for reminding me of your OS, mail.log is for debian :-)

25/tcp   open  smtp
80/tcp   open  http
110/tcp  open  pop3
111/tcp  open  rpcbind
143/tcp  open  imap
443/tcp  open  https
465/tcp  open  smtps
587/tcp  open  submission

>From the stat you have your mail server active and running
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1       localhost.localdomain localhost
::1             localhost6.localdomain6 localhost6
10.5.2.13      nagios.mydomain.com<http://nagios.mydomain.com>

You have not added nagios to the entry of your /etc/hosts   make this line like this:
10.5.2.13      nagios.mydomain.com<http://nagios.mydomain.com>    nagios     (i assume your hostname is still nagios right)

After you have done the above, restart the mail server and then send a mail via cli using the following syntax:
echo "your messages" | mail -s "your subject" k.saidi at zantel.co.tz<mailto:k.saidi at zantel.co.tz>   (hope you have mutt installed, if not install it then run the command). Check whether the mail was delivered. Then we can face nagios

Cheers!


--
------------------------------------------------------------------------
Seun Ojedeji,
Federal University Oye-Ekiti
web:      http://www.fuoye.edu.ng
Mobile: +2348035233535<tel:%2B2348035233535>
alt email: <http://goog_1872880453> seun.ojedeji at fuoye.edu.ng<mailto:seun.ojedeji at fuoye.edu.ng>


This email is Virus free! Has been Scanned.



--
------------------------------------------------------------------------
Seun Ojedeji,
Federal University Oye-Ekiti
web:      http://www.fuoye.edu.ng
Mobile: +2348035233535
alt email: <http://goog_1872880453> seun.ojedeji at fuoye.edu.ng<mailto:seun.ojedeji at fuoye.edu.ng>




--
------------------------------------------------------------------------
Seun Ojedeji,
Federal University Oye-Ekiti
web:      http://www.fuoye.edu.ng
Mobile: +2348035233535
alt email: <http://goog_1872880453> seun.ojedeji at fuoye.edu.ng<mailto:seun.ojedeji at fuoye.edu.ng>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://afnog.org/pipermail/afnog/attachments/20120604/dca428a4/attachment-0001.html>
-------------- next part --------------
This email is Virus free! Has been Scanned.


More information about the afnog mailing list