Notification Emails

Daniel Ceola DCeola at twgi.net
Wed May 4 21:08:58 CEST 2011


Thank you all for the help.

At first I thought we had an issue with Exchange, but then found I could send mail through command line on my Nagios system and it worked fine.  I actually found the below information that Richard shared  earlier this afternoon and reconfigured PostFix to route all mail through our exchange server. At this time, everything is working fine.

I appreciate all of the input and assistance!

Thanks,

Daniel Ceola

From: Richard Clark [mailto:noc at fohnet.co.uk]
Sent: Wednesday, May 04, 2011 12:58 PM
To: Nagios Users List
Subject: Re: [Nagios-users] Notification Emails

On 4 May 2011, at 16:03, Daniel Ceola <DCeola at twgi.net<mailto:DCeola at twgi.net>> wrote:

Hello all!

My company recently migrated to a new exchange email server (ex03 -> ex10).  Nagios has been up and running wonderfully in our environment for some while (was running when I started working here).

I have discovered that the notification emails were being routed through the now nonexistent ex03 server in our network.  Since we have taken that system down, we are now not getting any notification emails.

>From what I understand, and have been told - our Nagios installation was performed on Ubuntu, basically using the info I the quick-start install guide.  As such, this should mean that the system is using mailx to send emails (as its own mail server) and thus simply using our internal MX records to route email to our mail server.  Our MX record was updated on the day that we made the final server cutover, and it didn't affect receiving email from Nagios.


The question here is this:  Is there somewhere within Nagios or the Ubuntu OS that I need to make a config change to route the notification email through the new internal mail server to the recipients?

I know we are still ironing out some kinks in our new exchange system, so if there is not a configuration within Nagios/Ubuntu that affects this, I will continue the search for resolution through my exchange system.

Thanks,

Daniel Ceola
Systems & DB Admin
Nagios doesn't send mails in itself, it only calls the commands that its configured to based on the criteria that you set. One of which may well be the sending of a mail.
Grep through your nagios configuration to see which command it's actually calling.



The default MTA for Ubuntu is postfix - sounds like it may have been configured to use an SMTP relay rather than MX based routing.
'dpkg-reconfigure postfix' should give you an ncurses-based wizard if you're not comfortable with postfix configuration.
Also, check logs at /var/log/mail.*
and probably worth checking if someones done something silly like put a static hostname entry for a mail server in /etc/hosts




Cheers,
--
Richard Clark
richard at fohnet.co.uk<mailto:richard at fohnet.co.uk>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20110504/ed0477e1/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list