Re: [Nagios-users] notification emails
So much to what I wrote a few days ago...: you also checked them with your Nagios user, not root, right? But at least it works now ;-) On Sat, Dec 3, 2011 at 12:58 PM, Nick Price wrote: > Stupid I forgot that bit > > ** ** > > Did chmod 5777 sendmail and it works now > > ** ** > > Thanks for the help > > ** ** > > ** ** > > ** ** > > ** ** > > *From:* Michael Friedrich [mailto:michael.friedr...@univie.ac.at] > *Sent:* Friday, December 02, 2011 12:54 > *To:* nagios-users@lists.sourceforge.net > > *Subject:* Re: [Nagios-users] notification emails > > ** ** > > On 02.12.2011 12:36, Nick Price wrote: > > No its still activated > > > > I even copied the configs from the old server. > > > > It seems it’s just fedora 16 that has the problem. > > > > This version of Nagios works fine with fedora 16. > > > > I looked on tactical view > > > > Everything is enabled except SSH localhost > > > > > > *From:* Claudio Kuenzler > [mailto:c...@claudiokuenzler.com] > > *Sent:* Friday, December 02, 2011 12:14 > *To:* Nagios Users List > *Subject:* Re: [Nagios-users] notification emails > > > > Did you by accident disable the notifications? > > On the Nagios web interface, click on Tactical Overview. > At the end of the page (Monitoring Features) check that Notifications are > green/enabled. > > It would make sense as you don't have SELinux and all commands seem to > work from command-line (you also checked them with your Nagios user, not > root, right?). > > On Fri, Dec 2, 2011 at 11:30 AM, Nick Price wrote: > > Ok > > > > I am getting in the debug log > > > > Notification viability test failed. No notification will be sent. > > > > What is this and how to troubleshoot it. > > > > I can send emails from command line. > > Selinux is disabled > > > > > > > > > > > > *From:* m...@catsnest.co.uk [mailto:m...@catsnest.co.uk] > *Sent:* Friday, December 02, 2011 10:23 > > > *To:* Nagios Users List > *Subject:* Re: [Nagios-users] notification emails > > > > > > On Fri, Dec 2, 2011 at 8:14 AM, Nick Price wrote: > > Yes printf works > > I had the same version of Nagios with the same config files working OK > with fedora 14 > > It is only when I installed it on fedora 16 the notifications don’t work** > ** > > I think it’s a bug within Nagios > > > > I doubt that its a bug in Nagios, as Nagios just uses your system's > commands to send notifications. > What is your notification config? can you run the commands the > notification uses as the Nagios user? > Is there some security such as SE Linux running? > > You could try adding logging to the Notification command eg add a ">> > /var/tmp/Notification.log" > > or instead of the Notification command being a direct command, make a > script for it instead. > > Ritchie, > > -- > <-- http://23.me.uk/2 --> > <--Time flies like an arrow; fruit flies like a banana. --> > > > > > > > Did you also do > > printf ‘this is a test’ | /bin/mail –s test_email em...@mydomain.com > > ? > > On Wed, Nov 30, 2011 at 9:09 PM, Nick Price wrote: > > The defaults are there. > > > > > > I didecho ‘this is a test’ | /bin/mail –s test_email > em...@mydomain.com > > > > > > That went out Ok > > > > What to look at next > > > > > > > > *From:* Claudio Kuenzler [mailto:c...@claudiokuenzler.com] > *Sent:* Wednesday, November 30, 2011 12:37 > *To:* Nagios Users List > *Subject:* Re: [Nagios-users] notification emails > > > > Did you check the command which is used to send notifications in > command.cfg or checkcommand.cfg ? > Maybe you don't have the binary or you need to rename the command. > > By default it uses /usr/bin/printf and /usr/bin/mail if I'm not mistaken.* > *** > > On Wed, Nov 30, 2011 at 9:23 AM, Nick Price wrote: > > Hello > > I am not sure if this is a bug or config issue. > > I have a clean install of fedora 16 32 bit with a manual install of nagios > 3.3.1 and nagios plugins 1.4.15. > > I see in the debug log > > Notification viability test f
Re: [Nagios-users] notification emails
Stupid I forgot that bit Did chmod 5777 sendmail and it works now Thanks for the help From: Michael Friedrich [mailto:michael.friedr...@univie.ac.at] Sent: Friday, December 02, 2011 12:54 To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] notification emails On 02.12.2011 12:36, Nick Price wrote: No its still activated I even copied the configs from the old server. It seems it's just fedora 16 that has the problem. This version of Nagios works fine with fedora 16. I looked on tactical view Everything is enabled except SSH localhost From: Claudio Kuenzler [mailto:c...@claudiokuenzler.com] Sent: Friday, December 02, 2011 12:14 To: Nagios Users List Subject: Re: [Nagios-users] notification emails Did you by accident disable the notifications? On the Nagios web interface, click on Tactical Overview. At the end of the page (Monitoring Features) check that Notifications are green/enabled. It would make sense as you don't have SELinux and all commands seem to work from command-line (you also checked them with your Nagios user, not root, right?). On Fri, Dec 2, 2011 at 11:30 AM, Nick Price wrote: Ok I am getting in the debug log Notification viability test failed. No notification will be sent. What is this and how to troubleshoot it. I can send emails from command line. Selinux is disabled From: m...@catsnest.co.uk [mailto:m...@catsnest.co.uk] Sent: Friday, December 02, 2011 10:23 To: Nagios Users List Subject: Re: [Nagios-users] notification emails On Fri, Dec 2, 2011 at 8:14 AM, Nick Price wrote: Yes printf works I had the same version of Nagios with the same config files working OK with fedora 14 It is only when I installed it on fedora 16 the notifications don't work I think it's a bug within Nagios I doubt that its a bug in Nagios, as Nagios just uses your system's commands to send notifications. What is your notification config? can you run the commands the notification uses as the Nagios user? Is there some security such as SE Linux running? You could try adding logging to the Notification command eg add a ">> /var/tmp/Notification.log" or instead of the Notification command being a direct command, make a script for it instead. Ritchie, -- <-- http://23.me.uk/2 --> <--Time flies like an arrow; fruit flies like a banana. --> Did you also do printf 'this is a test' | /bin/mail -s test_email em...@mydomain.com ? On Wed, Nov 30, 2011 at 9:09 PM, Nick Price wrote: The defaults are there. I didecho 'this is a test' | /bin/mail -s test_email em...@mydomain.com That went out Ok What to look at next From: Claudio Kuenzler [mailto:c...@claudiokuenzler.com] Sent: Wednesday, November 30, 2011 12:37 To: Nagios Users List Subject: Re: [Nagios-users] notification emails Did you check the command which is used to send notifications in command.cfg or checkcommand.cfg ? Maybe you don't have the binary or you need to rename the command. By default it uses /usr/bin/printf and /usr/bin/mail if I'm not mistaken. On Wed, Nov 30, 2011 at 9:23 AM, Nick Price wrote: Hello I am not sure if this is a bug or config issue. I have a clean install of fedora 16 32 bit with a manual install of nagios 3.3.1 and nagios plugins 1.4.15. I see in the debug log Notification viability test failed. No notification will be sent out. the contact, which will be shown some lines above (always post a complete debug log for a notification!), did not pass the viability tests. this can be notification_options, notification_period, notifications_disabled, etc. so to conclude with, i'd highly advise you to 1/ post the contact object definition from the objects.cache 2/ post the complete service object definition from the objects.cache 3/ post the complete debug for this service and contact notification I can send test emails from this server using sendmail and that bit works Is there a solution for this. Regards Nick -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ 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 -- All the data continuously generated in your IT infrastruct
Re: [Nagios-users] notification emails
On 02.12.2011 12:36, Nick Price wrote: No its still activated I even copied the configs from the old server. It seems it's just fedora 16 that has the problem. This version of Nagios works fine with fedora 16. I looked on tactical view Everything is enabled except SSH localhost *From:*Claudio Kuenzler [mailto:c...@claudiokuenzler.com] *Sent:* Friday, December 02, 2011 12:14 *To:* Nagios Users List *Subject:* Re: [Nagios-users] notification emails Did you by accident disable the notifications? On the Nagios web interface, click on Tactical Overview. At the end of the page (Monitoring Features) check that Notifications are green/enabled. It would make sense as you don't have SELinux and all commands seem to work from command-line (you also checked them with your Nagios user, not root, right?). On Fri, Dec 2, 2011 at 11:30 AM, Nick Price <mailto:np...@hotmail.com>> wrote: Ok I am getting in the debug log Notification viability test failed. No notification will be sent. What is this and how to troubleshoot it. I can send emails from command line. Selinux is disabled *From:*m...@catsnest.co.uk <mailto:m...@catsnest.co.uk> [mailto:m...@catsnest.co.uk <mailto:m...@catsnest.co.uk>] *Sent:* Friday, December 02, 2011 10:23 *To:* Nagios Users List *Subject:* Re: [Nagios-users] notification emails On Fri, Dec 2, 2011 at 8:14 AM, Nick Price <mailto:np...@hotmail.com>> wrote: Yes printf works I had the same version of Nagios with the same config files working OK with fedora 14 It is only when I installed it on fedora 16 the notifications don't work I think it's a bug within Nagios I doubt that its a bug in Nagios, as Nagios just uses your system's commands to send notifications. What is your notification config? can you run the commands the notification uses as the Nagios user? Is there some security such as SE Linux running? You could try adding logging to the Notification command eg add a ">> /var/tmp/Notification.log" or instead of the Notification command being a direct command, make a script for it instead. Ritchie, -- <-- http://23.me.uk/2 --> <--Time flies like an arrow; fruit flies like a banana. --> Did you also do printf 'this is a test' | /bin/mail --s test_email em...@mydomain.com <mailto:em...@mydomain.com> ? On Wed, Nov 30, 2011 at 9:09 PM, Nick Price mailto:np...@hotmail.com>> wrote: The defaults are there. I didecho 'this is a test' | /bin/mail --s test_email em...@mydomain.com <mailto:em...@mydomain.com> That went out Ok What to look at next *From:*Claudio Kuenzler [mailto:c...@claudiokuenzler.com <mailto:c...@claudiokuenzler.com>] *Sent:* Wednesday, November 30, 2011 12:37 *To:* Nagios Users List *Subject:* Re: [Nagios-users] notification emails Did you check the command which is used to send notifications in command.cfg or checkcommand.cfg ? Maybe you don't have the binary or you need to rename the command. By default it uses /usr/bin/printf and /usr/bin/mail if I'm not mistaken. On Wed, Nov 30, 2011 at 9:23 AM, Nick Price mailto:np...@hotmail.com>> wrote: Hello I am not sure if this is a bug or config issue. I have a clean install of fedora 16 32 bit with a manual install of nagios 3.3.1 and nagios plugins 1.4.15. I see in the debug log Notification viability test failed. No notification will be sent out. the contact, which will be shown some lines above (always post a complete debug log for a notification!), did not pass the viability tests. this can be notification_options, notification_period, notifications_disabled, etc. so to conclude with, i'd highly advise you to 1/ post the contact object definition from the objects.cache 2/ post the complete service object definition from the objects.cache 3/ post the complete debug for this service and contact notification I can send test emails from this server using sendmail and that bit works Is there a solution for this. Regards Nick -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net <mailto: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 withou
Re: [Nagios-users] notification emails
No its still activated I even copied the configs from the old server. It seems it's just fedora 16 that has the problem. This version of Nagios works fine with fedora 16. I looked on tactical view Everything is enabled except SSH localhost From: Claudio Kuenzler [mailto:c...@claudiokuenzler.com] Sent: Friday, December 02, 2011 12:14 To: Nagios Users List Subject: Re: [Nagios-users] notification emails Did you by accident disable the notifications? On the Nagios web interface, click on Tactical Overview. At the end of the page (Monitoring Features) check that Notifications are green/enabled. It would make sense as you don't have SELinux and all commands seem to work from command-line (you also checked them with your Nagios user, not root, right?). On Fri, Dec 2, 2011 at 11:30 AM, Nick Price wrote: Ok I am getting in the debug log Notification viability test failed. No notification will be sent. What is this and how to troubleshoot it. I can send emails from command line. Selinux is disabled From: m...@catsnest.co.uk [mailto:m...@catsnest.co.uk] Sent: Friday, December 02, 2011 10:23 To: Nagios Users List Subject: Re: [Nagios-users] notification emails On Fri, Dec 2, 2011 at 8:14 AM, Nick Price wrote: Yes printf works I had the same version of Nagios with the same config files working OK with fedora 14 It is only when I installed it on fedora 16 the notifications don't work I think it's a bug within Nagios I doubt that its a bug in Nagios, as Nagios just uses your system's commands to send notifications. What is your notification config? can you run the commands the notification uses as the Nagios user? Is there some security such as SE Linux running? You could try adding logging to the Notification command eg add a ">> /var/tmp/Notification.log" or instead of the Notification command being a direct command, make a script for it instead. Ritchie, -- <-- http://23.me.uk/2 --> <--Time flies like an arrow; fruit flies like a banana. --> Did you also do printf 'this is a test' | /bin/mail -s test_email em...@mydomain.com ? On Wed, Nov 30, 2011 at 9:09 PM, Nick Price wrote: The defaults are there. I didecho 'this is a test' | /bin/mail -s test_email em...@mydomain.com That went out Ok What to look at next From: Claudio Kuenzler [mailto:c...@claudiokuenzler.com] Sent: Wednesday, November 30, 2011 12:37 To: Nagios Users List Subject: Re: [Nagios-users] notification emails Did you check the command which is used to send notifications in command.cfg or checkcommand.cfg ? Maybe you don't have the binary or you need to rename the command. By default it uses /usr/bin/printf and /usr/bin/mail if I'm not mistaken. On Wed, Nov 30, 2011 at 9:23 AM, Nick Price wrote: Hello I am not sure if this is a bug or config issue. I have a clean install of fedora 16 32 bit with a manual install of nagios 3.3.1 and nagios plugins 1.4.15. I see in the debug log Notification viability test failed. No notification will be sent out. I can send test emails from this server using sendmail and that bit works Is there a solution for this. Regards Nick -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ 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 -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ 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 -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk tak
Re: [Nagios-users] notification emails
Did you by accident disable the notifications? On the Nagios web interface, click on Tactical Overview. At the end of the page (Monitoring Features) check that Notifications are green/enabled. It would make sense as you don't have SELinux and all commands seem to work from command-line (you also checked them with your Nagios user, not root, right?). On Fri, Dec 2, 2011 at 11:30 AM, Nick Price wrote: > Ok > > ** ** > > I am getting in the debug log > > ** ** > > Notification viability test failed. No notification will be sent. > > ** ** > > What is this and how to troubleshoot it. > > ** ** > > I can send emails from command line. > > Selinux is disabled > > ** ** > > ** ** > > ** ** > > ** ** > > ** ** > > *From:* m...@catsnest.co.uk [mailto:m...@catsnest.co.uk] > *Sent:* Friday, December 02, 2011 10:23 > > *To:* Nagios Users List > *Subject:* Re: [Nagios-users] notification emails > > ** ** > > ** ** > > On Fri, Dec 2, 2011 at 8:14 AM, Nick Price wrote: > > Yes printf works > > I had the same version of Nagios with the same config files working OK > with fedora 14 > > It is only when I installed it on fedora 16 the notifications don’t work** > ** > > I think it’s a bug within Nagios > > > > I doubt that its a bug in Nagios, as Nagios just uses your system's > commands to send notifications. > What is your notification config? can you run the commands the > notification uses as the Nagios user? > Is there some security such as SE Linux running? > > You could try adding logging to the Notification command eg add a ">> > /var/tmp/Notification.log" > > or instead of the Notification command being a direct command, make a > script for it instead. > > Ritchie, > > -- > <-- http://23.me.uk/2 --> > <--Time flies like an arrow; fruit flies like a banana. --> > > > > > > > Did you also do > > printf ‘this is a test’ | /bin/mail –s test_email em...@mydomain.com > > ? > > On Wed, Nov 30, 2011 at 9:09 PM, Nick Price wrote: > > The defaults are there. > > > > > > I didecho ‘this is a test’ | /bin/mail –s test_email > em...@mydomain.com > > > > > > That went out Ok > > > > What to look at next > > > > > > > > *From:* Claudio Kuenzler [mailto:c...@claudiokuenzler.com] > *Sent:* Wednesday, November 30, 2011 12:37 > *To:* Nagios Users List > *Subject:* Re: [Nagios-users] notification emails > > > > Did you check the command which is used to send notifications in > command.cfg or checkcommand.cfg ? > Maybe you don't have the binary or you need to rename the command. > > By default it uses /usr/bin/printf and /usr/bin/mail if I'm not mistaken.* > *** > > On Wed, Nov 30, 2011 at 9:23 AM, Nick Price wrote: > > Hello > > I am not sure if this is a bug or config issue. > > I have a clean install of fedora 16 32 bit with a manual install of nagios > 3.3.1 and nagios plugins 1.4.15. > > I see in the debug log > > Notification viability test failed. No notification will be sent out. > > I can send test emails from this server using sendmail and that bit works > > > Is there a solution for this. > > Regards > > Nick > > > > -- > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > ___ > 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 > > > > > > -- > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > ___ > Nagios-users mailing list &g
Re: [Nagios-users] notification emails
Ok I am getting in the debug log Notification viability test failed. No notification will be sent. What is this and how to troubleshoot it. I can send emails from command line. Selinux is disabled From: m...@catsnest.co.uk [mailto:m...@catsnest.co.uk] Sent: Friday, December 02, 2011 10:23 To: Nagios Users List Subject: Re: [Nagios-users] notification emails On Fri, Dec 2, 2011 at 8:14 AM, Nick Price wrote: Yes printf works I had the same version of Nagios with the same config files working OK with fedora 14 It is only when I installed it on fedora 16 the notifications don’t work I think it’s a bug within Nagios I doubt that its a bug in Nagios, as Nagios just uses your system's commands to send notifications. What is your notification config? can you run the commands the notification uses as the Nagios user? Is there some security such as SE Linux running? You could try adding logging to the Notification command eg add a ">> /var/tmp/Notification.log" or instead of the Notification command being a direct command, make a script for it instead. Ritchie, -- <-- http://23.me.uk/2 --> <--Time flies like an arrow; fruit flies like a banana. --> Did you also do printf ‘this is a test’ | /bin/mail –s test_email em...@mydomain.com ? On Wed, Nov 30, 2011 at 9:09 PM, Nick Price wrote: The defaults are there. I didecho ‘this is a test’ | /bin/mail –s test_email em...@mydomain.com That went out Ok What to look at next From: Claudio Kuenzler [mailto:c...@claudiokuenzler.com] Sent: Wednesday, November 30, 2011 12:37 To: Nagios Users List Subject: Re: [Nagios-users] notification emails Did you check the command which is used to send notifications in command.cfg or checkcommand.cfg ? Maybe you don't have the binary or you need to rename the command. By default it uses /usr/bin/printf and /usr/bin/mail if I'm not mistaken. On Wed, Nov 30, 2011 at 9:23 AM, Nick Price wrote: Hello I am not sure if this is a bug or config issue. I have a clean install of fedora 16 32 bit with a manual install of nagios 3.3.1 and nagios plugins 1.4.15. I see in the debug log Notification viability test failed. No notification will be sent out. I can send test emails from this server using sendmail and that bit works Is there a solution for this. Regards Nick -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ 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 -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ 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 -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ 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 -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d___ Nagios-users mailing li
Re: [Nagios-users] notification emails
On 02.12.2011 09:14, Nick Price wrote: Yes printf works I had the same version of Nagios with the same config files working OK with fedora 14 It is only when I installed it on fedora 16 the notifications don't work I think it's a bug within Nagios nagios just calls the command forking into a shell, so i'd rather guess this will be affected by turned on selinux. provide the output of # getenforce Did you also do printf 'this is a test' | /bin/mail --s test_email em...@mydomain.com <mailto:em...@mydomain.com> ? On Wed, Nov 30, 2011 at 9:09 PM, Nick Price <mailto:np...@hotmail.com>> wrote: The defaults are there. I didecho 'this is a test' | /bin/mail --s test_email em...@mydomain.com <mailto:em...@mydomain.com> That went out Ok What to look at next *From:*Claudio Kuenzler [mailto:c...@claudiokuenzler.com <mailto:c...@claudiokuenzler.com>] *Sent:* Wednesday, November 30, 2011 12:37 *To:* Nagios Users List *Subject:* Re: [Nagios-users] notification emails Did you check the command which is used to send notifications in command.cfg or checkcommand.cfg ? Maybe you don't have the binary or you need to rename the command. By default it uses /usr/bin/printf and /usr/bin/mail if I'm not mistaken. On Wed, Nov 30, 2011 at 9:23 AM, Nick Price <mailto:np...@hotmail.com>> wrote: Hello I am not sure if this is a bug or config issue. I have a clean install of fedora 16 32 bit with a manual install of nagios 3.3.1 and nagios plugins 1.4.15. I see in the debug log Notification viability test failed. No notification will be sent out. I can send test emails from this server using sendmail and that bit works Is there a solution for this. Regards Nick -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net <mailto: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 -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net <mailto: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 -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ 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 -- DI (FH) Michael Friedrich Vienna University Computer Center Universitaetsstrasse 7 A-1010 Vienna, Austria email: michael.friedr...@univie.ac.at phone: +43 1 4277 14359 mobile:+43 664 60277 14359 fax: +43 1 4277 14338 web: http://www.univie.ac.at/zid http://www.aco.net Lead Icinga Core Developer http://www.icinga.org -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d___ 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
Re: [Nagios-users] notification emails
On Fri, Dec 2, 2011 at 8:14 AM, Nick Price wrote: > Yes printf works > > I had the same version of Nagios with the same config files working OK > with fedora 14 > > It is only when I installed it on fedora 16 the notifications don’t work** > ** > > I think it’s a bug within Nagios > > ** ** > > ** > I doubt that its a bug in Nagios, as Nagios just uses your system's commands to send notifications. What is your notification config? can you run the commands the notification uses as the Nagios user? Is there some security such as SE Linux running? You could try adding logging to the Notification command eg add a ">> /var/tmp/Notification.log" or instead of the Notification command being a direct command, make a script for it instead. Ritchie, -- <-- http://23.me.uk/2 --> <--Time flies like an arrow; fruit flies like a banana. --> > ** > > ** ** > > Did you also do > > printf ‘this is a test’ | /bin/mail –s test_email em...@mydomain.com > > ? > > On Wed, Nov 30, 2011 at 9:09 PM, Nick Price wrote: > > The defaults are there. > > > > > > I didecho ‘this is a test’ | /bin/mail –s test_email > em...@mydomain.com > > > > > > That went out Ok > > > > What to look at next > > > > **** > > **** > > *From:* Claudio Kuenzler [mailto:c...@claudiokuenzler.com] > *Sent:* Wednesday, November 30, 2011 12:37 > *To:* Nagios Users List > *Subject:* Re: [Nagios-users] notification emails > > > > Did you check the command which is used to send notifications in > command.cfg or checkcommand.cfg ? > Maybe you don't have the binary or you need to rename the command. > > By default it uses /usr/bin/printf and /usr/bin/mail if I'm not mistaken.* > *** > > On Wed, Nov 30, 2011 at 9:23 AM, Nick Price wrote: > > Hello > > I am not sure if this is a bug or config issue. > > I have a clean install of fedora 16 32 bit with a manual install of nagios > 3.3.1 and nagios plugins 1.4.15. > > I see in the debug log > > Notification viability test failed. No notification will be sent out. > > I can send test emails from this server using sendmail and that bit works > > > Is there a solution for this. > > Regards > > Nick > > > > -- > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > ___ > 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 > > > > > > -- > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > ___ > 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 > > ** ** > > > -- > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > ___ > 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 > -- All the data continuousl
Re: [Nagios-users] notification emails
Yes printf works I had the same version of Nagios with the same config files working OK with fedora 14 It is only when I installed it on fedora 16 the notifications don't work I think it's a bug within Nagios Did you also do printf 'this is a test' | /bin/mail -s test_email em...@mydomain.com ? On Wed, Nov 30, 2011 at 9:09 PM, Nick Price wrote: The defaults are there. I didecho 'this is a test' | /bin/mail -s test_email em...@mydomain.com That went out Ok What to look at next From: Claudio Kuenzler [mailto:c...@claudiokuenzler.com] Sent: Wednesday, November 30, 2011 12:37 To: Nagios Users List Subject: Re: [Nagios-users] notification emails Did you check the command which is used to send notifications in command.cfg or checkcommand.cfg ? Maybe you don't have the binary or you need to rename the command. By default it uses /usr/bin/printf and /usr/bin/mail if I'm not mistaken. On Wed, Nov 30, 2011 at 9:23 AM, Nick Price wrote: Hello I am not sure if this is a bug or config issue. I have a clean install of fedora 16 32 bit with a manual install of nagios 3.3.1 and nagios plugins 1.4.15. I see in the debug log Notification viability test failed. No notification will be sent out. I can send test emails from this server using sendmail and that bit works Is there a solution for this. Regards Nick -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ 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 -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ 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 -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d___ 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
Re: [Nagios-users] notification emails
Did you also do printf ‘this is a test’ | /bin/mail –s test_email em...@mydomain.com ? On Wed, Nov 30, 2011 at 9:09 PM, Nick Price wrote: > The defaults are there. > > ** ** > > ** ** > > I didecho ‘this is a test’ | /bin/mail –s test_email > em...@mydomain.com > > ** ** > > ** ** > > That went out Ok > > ** ** > > What to look at next > > ** ** > > ** ** > > ** ** > > *From:* Claudio Kuenzler [mailto:c...@claudiokuenzler.com] > *Sent:* Wednesday, November 30, 2011 12:37 > *To:* Nagios Users List > *Subject:* Re: [Nagios-users] notification emails > > ** ** > > Did you check the command which is used to send notifications in > command.cfg or checkcommand.cfg ? > Maybe you don't have the binary or you need to rename the command. > > By default it uses /usr/bin/printf and /usr/bin/mail if I'm not mistaken.* > *** > > On Wed, Nov 30, 2011 at 9:23 AM, Nick Price wrote: > > Hello > > I am not sure if this is a bug or config issue. > > I have a clean install of fedora 16 32 bit with a manual install of nagios > 3.3.1 and nagios plugins 1.4.15. > > I see in the debug log > > Notification viability test failed. No notification will be sent out. > > I can send test emails from this server using sendmail and that bit works > > > Is there a solution for this. > > Regards > > Nick > > > > -- > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > ___ > 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 > > ** ** > > > -- > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > ___ > 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 > -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d___ 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
Re: [Nagios-users] notification emails
The defaults are there. I didecho 'this is a test' | /bin/mail -s test_email em...@mydomain.com That went out Ok What to look at next From: Claudio Kuenzler [mailto:c...@claudiokuenzler.com] Sent: Wednesday, November 30, 2011 12:37 To: Nagios Users List Subject: Re: [Nagios-users] notification emails Did you check the command which is used to send notifications in command.cfg or checkcommand.cfg ? Maybe you don't have the binary or you need to rename the command. By default it uses /usr/bin/printf and /usr/bin/mail if I'm not mistaken. On Wed, Nov 30, 2011 at 9:23 AM, Nick Price wrote: Hello I am not sure if this is a bug or config issue. I have a clean install of fedora 16 32 bit with a manual install of nagios 3.3.1 and nagios plugins 1.4.15. I see in the debug log Notification viability test failed. No notification will be sent out. I can send test emails from this server using sendmail and that bit works Is there a solution for this. Regards Nick -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ 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 -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d___ 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
Re: [Nagios-users] notification emails
Did you check the command which is used to send notifications in command.cfg or checkcommand.cfg ? Maybe you don't have the binary or you need to rename the command. By default it uses /usr/bin/printf and /usr/bin/mail if I'm not mistaken. On Wed, Nov 30, 2011 at 9:23 AM, Nick Price wrote: > Hello > > I am not sure if this is a bug or config issue. > > I have a clean install of fedora 16 32 bit with a manual install of nagios > 3.3.1 and nagios plugins 1.4.15. > > I see in the debug log > > Notification viability test failed. No notification will be sent out. > > I can send test emails from this server using sendmail and that bit works > > > Is there a solution for this. > > Regards > > Nick > > > > -- > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > ___ > 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 > -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d___ 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
Re: [Nagios-users] notification emails
Hello I am not sure if this is a bug or config issue. I have a clean install of fedora 16 32 bit with a manual install of nagios 3.3.1 and nagios plugins 1.4.15. I see in the debug log Notification viability test failed. No notification will be sent out. I can send test emails from this server using sendmail and that bit works Is there a solution for this. Regards Nick -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ 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
Re: [Nagios-users] Notification Emails
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:n...@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 mailto:dce...@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 rich...@fohnet.co.uk<mailto:rich...@fohnet.co.uk> -- 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
Re: [Nagios-users] Notification Emails
On 4 May 2011, at 16:03, Daniel Ceola 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 rich...@fohnet.co.uk -- 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
Re: [Nagios-users] Notification Emails
Hmm, then I have to say I am stumped. That’s all I did and my notifications work fine. Are you able to telnet from your Nagios box to your exchange Hub server on port 25? 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:dce...@twgi.net] Sent: Wednesday, May 04, 2011 1:45 PM To: Nagios Users List Subject: Re: [Nagios-users] Notification Emails Thanks for the response! We have configured the internal mail connectors, and at this time I’m confident it’s not a Nagios or Ubuntu configuration issue. Thanks, Daniel Ceola From: Martin Hugo [mailto:martin_h...@hboe.org] Sent: Wednesday, May 04, 2011 1:40 PM To: 'Nagios Users List' Subject: Re: [Nagios-users] Notification Emails 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:dce...@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@UbuntuTest:/usr/local/nagios/etc/objects$ echo "TEST" | mail -s "this is a test" -S smtp=.twgi.net dce...@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:en...@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 yourem...@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" To: "Nagios Users List" 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: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 fin
Re: [Nagios-users] Notification Emails
Thanks for the response! We have configured the internal mail connectors, and at this time I’m confident it’s not a Nagios or Ubuntu configuration issue. Thanks, Daniel Ceola From: Martin Hugo [mailto:martin_h...@hboe.org] Sent: Wednesday, May 04, 2011 1:40 PM To: 'Nagios Users List' Subject: Re: [Nagios-users] Notification Emails 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:dce...@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@UbuntuTest:/usr/local/nagios/etc/objects$ echo "TEST" | mail -s "this is a test" -S smtp=.twgi.net dce...@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:en...@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 yourem...@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" To: "Nagios Users List" 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: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" To: "Nagios Users (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 environme
Re: [Nagios-users] Notification Emails
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:dce...@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@UbuntuTest:/usr/local/nagios/etc/objects$ echo "TEST" | mail -s "this is a test" -S smtp=twgiex.twgi.net dce...@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:en...@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 yourem...@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" To: "Nagios Users List" 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: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" To: "Nagios Users (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 perf
Re: [Nagios-users] Notification Emails
Thanks again! When I tried your suggestion below, it told me this: nagios@UbuntuTest:/usr/local/nagios/etc/objects$ echo "TEST" | mail -s "this is a test" -S smtp=twgiex.twgi.net dce...@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:en...@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 yourem...@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" To: "Nagios Users List" 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: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" To: "Nagios Users (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 f
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 yourem...@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" To: "Nagios Users List" 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: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" To: "Nagios Users (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.n
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: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" To: "Nagios Users (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
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" To: "Nagios Users (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
[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