notification emails

Nick Price np121 at hotmail.com
Sat Dec 3 12:58:59 CET 2011


Stupid  I  forgot that bit

 

Did chmod 5777 sendmail  and it works now

 

Thanks for the help

 

 

 

 

From: Michael Friedrich [mailto:michael.friedrich at univie.ac.at] 
Sent: Friday, December 02, 2011 12:54
To: nagios-users at 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:ck at 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 <np121 at 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: mail at catsnest.co.uk [mailto:mail at 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 <np121 at 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  email at mydomain.com

?

On Wed, Nov 30, 2011 at 9:09 PM, Nick Price <np121 at hotmail.com> wrote:

The defaults are there.

 

 

I did        echo 'this is a test' | /bin/mail  -s  test_email
email at mydomain.com

 

 

That went out Ok

 

What to look at next

 

 

 

From: Claudio Kuenzler [mailto:ck at 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 <np121 at 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 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

 


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

 


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

 


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

 

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






-- 
DI (FH) Michael Friedrich
 
Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria
 
email:     michael.friedrich at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20111203/c8b8db3c/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
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
-------------- 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