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:en...@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" <dce...@twgi.net>
To: "Nagios Users (nagios-users@lists.sourceforge.net)"
<nagios-users@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@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@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