Notification Emails

Martin Hugo Martin_Hugo at hboe.org
Wed May 4 19:40:07 CEST 2011


Have you defined an internal mail connector on your EXCH2010 Hub server(s) for internal smtp servers that you want to allow to send out mail through your Exchange Server?  Setup their IP Addresses in the lower portion of the Network Tab and select the appropriate permissions and groups on the Authentication and Permission Groups tabs?

Since your Nagios was sending mail OK to your EXCH2003 system, I agree it is likely a 2010 issue, not a Nagios one.

Martin T. Hugo
Network Administrator
Hilliard City Schools
614-921-7102 (Ph)
614-771-7243 (Fax)
[Think before you print.]Think before you print

From: Daniel Ceola [mailto:DCeola at twgi.net]
Sent: Wednesday, May 04, 2011 1:00 PM
To: Ennis Ibarra - NMCOURTS.GOV; Nagios Users List
Subject: Re: [Nagios-users] Notification Emails

Thanks again! When I tried your suggestion below, it told me this:

nagios at UbuntuTest:/usr/local/nagios/etc/objects$ echo "TEST" | mail -s "this is a test" -S smtp=twgiex.twgi.net dceola at twgi.net
mail: invalid option -- 'S'
usage: mail [-dEIinv] [-a header] [-b bcc-addr] [-c cc-addr] [-s subject] to-addr ...
            [-- sendmail-options ...]
       mail [-dEIiNnv] -f [name]
       mail [-dEIiNnv] [-u user]

You don’t have to take time out of your day to help me with this, and I recognize that you are – I appreciate it!

Thanks,

Daniel Ceola

From: Ennis Ibarra [mailto:ennis at nmcourts.gov]
Sent: Wednesday, May 04, 2011 12:53 PM
To: Nagios Users List
Subject: Re: [Nagios-users] Notification Emails

If it helps, do your tests through your Ubuntu command line, using nagios as your user with something like:

echo "TEST" | mail -s "This is a test" -S smtp=EX10server.com youremail at yourdomain.com

When this is successful, chances are you nailed it.

Good luck then.

_____________________________________________
Supreme Court of New Mexico - Ennis Ibarra


----- Original Message -----
From: "Daniel Ceola" <DCeola at twgi.net>
To: "Nagios Users List" <nagios-users at lists.sourceforge.net>
Sent: Wednesday, May 4, 2011 10:21:19 AM
Subject: Re: [Nagios-users] Notification Emails

Thank you for the assistance. I was afraid that there was no actual location within Nagios/Ubuntu that had any configuration that needed to be changed. I’ll start working towards resolution within Exchange.

Thanks,

Daniel Ceola

From: Ennis Ibarra [mailto:ennis at nmcourts.gov]
Sent: Wednesday, May 04, 2011 11:37 AM
To: Nagios Users List
Subject: Re: [Nagios-users] Notification Emails

Sorry to hear you upgraded to EX10, but what are you going to do right ?

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.

On the specific notification by email command that Nagios actually performs, you may want to verify if you have something like:

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$

In such case, yes, your Nagios server is your MailX as well.

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:

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$

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.

Hope you find this useful.

_____________________________________________
Supreme Court of New Mexico - Ennis Ibarra


----- Original Message -----
From: "Daniel Ceola" <DCeola at twgi.net>
To: "Nagios Users (nagios-users at lists.sourceforge.net)" <nagios-users at lists.sourceforge.net>
Sent: Wednesday, May 4, 2011 8:07:31 AM
Subject: [Nagios-users] Notification Emails
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

The Wills Group
6355 Crain Hwy
La Plata, MD 20646
301-932-3600
301-932-3643 (direct line)


------------------------------------------------------------------------------
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
_______________________________________________
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

------------------------------------------------------------------------------
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
_______________________________________________
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20110504/d8da17cd/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 87 bytes
Desc: image001.gif
URL: <https://www.monitoring-lists.org/archive/users/attachments/20110504/d8da17cd/attachment.gif>
-------------- 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