<html><body bgcolor="#FFFFFF"><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); ">On 4 May 2011, at 16:03, Daniel Ceola <<a href="mailto:DCeola@twgi.net">DCeola@twgi.net</a>> wrote:</span><br>
</div><div><br></div><div></div><blockquote type="cite"><div><div class="WordSection1"><p class="MsoNormal">Hello all!</p><p class="MsoNormal"> </p><p class="MsoNormal">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).</p>
<p class="MsoNormal"> </p><p class="MsoNormal">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.  </p>
<p class="MsoNormal"> </p><p class="MsoNormal">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.</p>
<p class="MsoNormal"> </p><p class="MsoNormal"> </p><p class="MsoNormal">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?</p>
<p class="MsoNormal"> </p><p class="MsoNormal">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.</p>
<p class="MsoNormal"> </p><p class="MsoNormal">Thanks,</p><p class="MsoNormal"> </p><p class="MsoNormal">Daniel Ceola</p><p class="MsoNormal">Systems & DB Admin</p></div></div></blockquote><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); ">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.</span><div>
<span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469);">Grep through your nagios configuration to see which command it's actually calling.<br>
</span><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469);"><br>
</span><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); ">The default MTA for Ubuntu is postfix - sounds like it may have been configured to use an SMTP relay rather than MX based routing.</span></div>
<div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); ">'dpkg-reconfigure postfix' should give you an ncurses-based wizard if you're not comfortable with postfix configuration. </span></div>
<div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469);">Also, check logs at /var/log/mail.*</span></div>
<div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); ">and probably worth checking if someones done something silly like put a static hostname entry for a mail server in /etc/hosts<br>
<br></span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); "><br>
</span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); ">Cheers,<br>
--<div>Richard Clark</div><div><a href="mailto:richard@fohnet.co.uk">richard@fohnet.co.uk</a></div></span></div></div></div></body></html>