<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Arial; font-size: 10pt; color: #000000'>Sorry to hear you upgraded to EX10, but what are you going to do right ?<br><br>Yes, most likely your Ubuntu Server is using it's own MAILX to send emails, so my guess is that the mail routing is not hard-coded into any configuration within Ubuntu, probably you have a relay issue in your EX10 where your Nagios server massages are not allowed to relay, you may want to check on that.<br><br>On the specific notification by email command that Nagios actually performs, you may want to verify if you have something like:<br><br>command_line      /usr/bin/printf "%b" "***** Nagios *****\n\nNotification 
Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress:
 $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | 
/usr/bin/mailx -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is 
$HOSTSTATE$ **" $CONTACTEMAIL$<br><br>In such case, yes, your Nagios server is your MailX as well.<br><br>If you'd like to use your EX10 to relay email directly, although I don't know how to configure that in EX10, you may want to change the command for something like:<br><br>command_line    /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" -S smtp=yourEX10.server.com $CONTACTEMAIL$<span><font size="1"><span style="color: rgb(0, 0, 153);"><br><br></span></font></span>This way you'll use your EX10 to relay all the email generated by Nagios instead the local (to the Nagios box) MX, you can even turn off that service in your Ubuntu box, one less service to watch.<br><span id="0519a44e-7c3d-4d35-8a77-8f768b0a970b"><font size="1"><span style="color: rgb(0, 0, 153);"><br></span></font></span>Hope you find this useful.<br><span id="0519a44e-7c3d-4d35-8a77-8f768b0a970b"><font size="1"><span style="color: rgb(0, 0, 153);"><br>_____________________________________________</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153); font-weight: bold;">Supreme Court of New Mexico - Ennis Ibarra</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153); font-weight: bold;"></span><span style="color: rgb(0, 102, 0);"></span></font><br></span><br>----- Original Message -----<br>From: "Daniel Ceola" <DCeola@twgi.net><br>To: "Nagios Users (nagios-users@lists.sourceforge.net)" <nagios-users@lists.sourceforge.net><br>Sent: Wednesday, May 4, 2011 8:07:31 AM<br>Subject: [Nagios-users] Notification Emails<br><br><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--><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><p class="MsoNormal"> </p><p class="MsoNormal">The Wills Group</p><p class="MsoNormal">6355 Crain Hwy</p><p class="MsoNormal">La Plata, MD 20646</p><p class="MsoNormal">301-932-3600</p><p class="MsoNormal">301-932-3643 (direct line)</p><p class="MsoNormal"> </p></div><br>------------------------------------------------------------------------------<br>WhatsUp Gold - Download Free Network Management Software<br>The most intuitive, comprehensive, and cost-effective network <br>management toolset available today.  Delivers lowest initial <br>acquisition cost and overall TCO of any competing solution.<br>http://p.sf.net/sfu/whatsupgold-sd<br>_______________________________________________<br>Nagios-users mailing list<br>Nagios-users@lists.sourceforge.net<br>https://lists.sourceforge.net/lists/listinfo/nagios-users<br>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. <br>::: Messages without supporting info will risk being sent to /dev/null</div></body></html>