One thing that just occured to me and I only thought of it just now. Are you 
using a PERL script as a notification command? If so, that could explain the 
wrong information. If Nagios was compiled with the embedded PERL interpreter 
and the script is not written with that in mind, it could easily happen. You 
can disable it on a per script basis as described in the docs. Don't remember 
exactly the line that you add to the top of the script but it is something like:

# nagios: -epn

As the second line of the script. Try that if this is even close to your setup.

I wrote a custom notification script specifically designed to use the ePN but 
it is very environment specific and would not work for most people.
Sent on the Sprint® Now Network from my BlackBerry®

-----Original Message-----
From: James Pifer <jamespi...@hotmail.com>
Date: Thu, 18 Oct 2012 06:32:10 
To: Nagios Users List<nagios-users@lists.sourceforge.net>
Reply-To: Nagios Users List <nagios-users@lists.sourceforge.net>
Subject: Re: [Nagios-users] Can't get service failure(warning) to send
        notification

On 10/17/2012 11:31 PM, Frank Bulk wrote:
> You can set up different checks looking for different failures.
>
> Frank
>
>

The correct check is failing. On the Centreon screen I can see the Warning:

"HTTP WARNING:
HTTP/1.1 404 Not Found - 1428 bytes in 0.044 second response time"


But the notification related to that warning (because I can see the 
notification count going up) is:

SUBJECT: Host UP alert for login2.pca.com!
BODY:

***** centreon Notification *****

Type:PROBLEM
Host: login2.mycompany.com
State: UP
Address: login2.mycompany.com
Info: PING OK - Packet loss = 0%, RTA = 0.94 ms
Date/Time: 17-10-2012

The info seem to be coming from the Ping-LAN, not the CheckHTTP. Both services 
are associated to the host.

It says Host UP, Type PROBELM. I would prefer to see something like Service 
DOWN, Type PROBLEM, and Info: "HTTP/1.1 404 Not Found - 1428 bytes in 0.044 
second response time".

Thanks,
James


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
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
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
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

Reply via email to