[Nagiosplug-devel] check_http + proxy

Stanley Hopcroft Stanley.Hopcroft at IPAustralia.Gov.AU
Wed Dec 29 23:49:01 CET 2004


Dear Sir,

I am writing to thank you for your letter and say,

On Sun, Dec 26, 2004 at 09:02:18AM +0100, Julien TOUCHE wrote:
> 
> is there any option to use a proxy with check_http ?

No.

However unless you have a proxy requiring authentication (and then the 
full URI scheme _may_ help), you can use the -H option to specify the 
proxy and a URI as the -u option eg

tsitc> ./check_http -H a.b.c.d -u http://cisco.com/ -v |& more
GET http://cisco.com/ HTTP/1.0
User-Agent: check_http/1.54 (nagios-plugins 1.4.0alpha1)
Host: a.b.c.d


http://a.b.c.d:80http://cisco.com/ is 56779 characters
STATUS: HTTP/1.0 200 OK
**** HEADER ****
Date: Thu, 30 Dec 2004 07:42:30 GMT
Server: Apache/1.0 (Unix)
Set-Cookie: CP_GUTC=202.125.0.6.221181104392550534; path=/; expires=Mon, 
24-Dec-29 07:42:30 GMT; domain=.cisco.com
Content-Type: text/html
X-Cache: MISS from SomeCache.Com.AU
X-Cache-Lookup: MISS from AnotherCache.Com.AU
Proxy-Connection: close
**** CONTENT ****
<!-- $Revision: 1.10 $ --><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 
Transitional//EN">
<html>
<head>
<title>Cisco Systems, Inc</title>
<!-- $Revision: 1.2 $ -->
<META content="text/html;charset=iso-8859-1" http-equiv="Content-type" >

<META content="Cisco.com Default Home" name="docType" >

...


> or any other plugin to check a service through proxy ?
> 

Rolling your own with (Perl) LWP, WWW::Automate, (Ruby) .. (Python) ... 
or lynx/wget is not very onerous.

> thanks
> Regards
> 
> 		Julien

Yours sincerely.
-- 
Stanley Hopcroft

IP Australia
Ph: (02) 6283 3189  Fax: (02) 6281 1353
PO Box 200 Woden  ACT 2606
http://www.ipaustralia.gov.au
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: disclaimer.txt
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20041229/33a59525/attachment.txt>


More information about the Devel mailing list