check_http question?

Thomas Quinlan corsis_tom at yahoo.com
Fri Apr 30 16:23:15 CEST 2004


I am running Nagios on Gentoo, and for my check_http,
I get the results like this:

HTTP ok: HTTP/1.1 200 OK - 0.020 second response time 

I use:

check_command check_http!5!10!/pathto/page.do!word

and my command definition looks like:

# 'check_http' command definition
define command{
        command_name    check_http
        command_line    $USER1$/check_http  -H
$HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -u $ARG3$ -s $ARG4$
        }

I don't know if it's a function of my command
structure or whether it's Gentoo, but all of the
status information returned by Nagios is "chatty". 
(I'm not complaining, it's a good thing.)

Tom
--- Hugh Jones <hugh.jones at eduserv.org.uk> wrote:
> I've used something like "time lynx -source
> http://blah.thing
> >/dev/null" if I want the time that it takes to
> retreive it. In a bash
> shell script you can assign the output to a variable
> and use sed and cut
> etc to retrieve numeric values which you could then
> evaluate...
> 
> > -----Original Message-----
> > From: nagios-users-admin at lists.sourceforge.net 
> > [mailto:nagios-users-admin at lists.sourceforge.net]
> On Behalf 
> > Of Reuben Pearse
> > Sent: 30 April 2004 10:03
> > To: jnichols at pbp.net
> > Cc: nagios-users at lists.sourceforge.net
> > Subject: Re: [Nagios-users] check_http question?
> > 
> > 
> > You could try using curl
> > 
> > http://curl.haxx.se/
> > 
> > It is a command line tool for retrieving webpages.
> When grabbing 
> > webpages you can get it to report how many seconds
> it takes 
> > to download 
> > a page. You could probably wrap up a call to curl
> into a Nagios check 
> > script.
> > 
> > Has anyone done this already?
> > 
> > --
> > 
> > Reuben Pearse
> > Senior Systems Consultant
> > reuben at presence-systems.com
> > 
> > 
> > 
> > Jonathan Nichols wrote:
> > 
> > > Greetings!
> > >
> > > Can the check_http plugin also measure page load
> times, or does it 
> > > just check to see if the http port is open?
> > >
> > > I have a project that I've been tasked with -
> need to measure page 
> > > load times & also graph them.
> > >
> > > Can I do this with Nagios? If yes, how could I
> graph this? I know, 
> > > "rrdtool" or something.. but has anyone done
> this? :)
> > >
> > > Thanks for any information! :D
> > >
> > > -Jonathan
> > >
> > >
> > >
>
-------------------------------------------------------
> > > This SF.Net email is sponsored by: Oracle 10g
> > > Get certified on the hottest thing ever to hit
> the market... Oracle 
> > > 10g. Take an Oracle 10g class now, and we'll
> give you the exam FREE.
> > >
>
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
> > > _______________________________________________
> > > 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
> > 
> > 
> > 
> >
>
-------------------------------------------------------
> > This SF.Net email is sponsored by: Oracle 10g
> > Get certified on the hottest thing ever to hit the
> market... 
> > Oracle 10g. 
> > Take an Oracle 10g class now, and we'll give you
> the exam FREE.
> >
>
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
> > _______________________________________________
> > 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
> > 
> 
> 
>
-------------------------------------------------------
> This SF.Net email is sponsored by: Oracle 10g
> Get certified on the hottest thing ever to hit the
> market... Oracle 10g.
> Take an Oracle 10g class now, and we'll give you the
> exam FREE.
> http://ads.osdn.com/?ad_id149&alloc_id66&op=click
> _______________________________________________
> 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



	
		
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
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