Alerts based on performance data

Marc Powell marc at ena.com
Wed Feb 13 18:38:39 CET 2008



> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Mohr James
> Sent: Wednesday, February 13, 2008 11:11 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Alerts based on performance data
> 
> Hi All!
> 
> We are currently running Nagios 2.5 and are planning the move to 3.0
> within the next couple of weeks.
> 
> We have a monitor that checks whether specific web sites are reachable
> and the page contains specific text. The Nagios machine does not have
> internet access, so we are running check_http remotely. There is a
Perl
> wrapper which immediately prior to running check_http determines the


> 
> The success or failure is returned to Nagios along with the response
> time as performance data. What we want to do now is generate an alert
> based on the perfdata (that is the web page response time). I don't
want


> The simplest way I can see doing that is to define a
> service_perfdata_command that compares the service-perfdata to a table
> and if it is above the predefined value in sends and NSCA message to
the
> service (e.g. "response time too long" or whatever). However, I don't
> want to reinvent the wheel if someone has done this kind of thing
> before.

Why aren't these workable? 

check_http --help

-w, --warning=DOUBLE
    Response time to result in warning status (seconds)
 -c, --critical=DOUBLE
    Response time to result in critical status (seconds)

Or, you already have a wrapper that's intercepting the check_http
results, doing something with them and sending them on to nagios. Why
not just include that rather simple logic in the wrapper? If the time is
too long, return CRITICAL to nagios along with appropriate output
otherwise return the results reported by check_http. 

--
Marc 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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