[Nagiosplug-devel] FW: Nagiosplug-devel Digest, Vol 37, Issue 6

Hiren Patel hir3npatel at gmail.com
Mon Jun 15 14:42:19 CEST 2009


Mark Mathieson wrote:
> Check via unauthenticated proxy:
> ---
> # ./check_http -vvv -I 192.168.0.8 -p 3128 -H www.google.com -u http://www.google.com/index.html
> 
> GET http://www.google.com/index.html HTTP/1.0
> User-Agent: check_http/v2053 (nagios-plugins 1.4.13)
> Connection: close
> Host: www.google.com:3128
> 
> http://192.168.0.8:3128http://www.google.com/index.html is 826 characters
> [snip body]
> 
> HTTP OK - HTTP/1.0 302 Moved Temporarily - 0.332 second response time |time=0.332021s;;;0.000000 size=826B;;;0
> ---
> 
> Check via authenticated proxy (details provided for <proxy>/<user>/<pw>)
> ---
> # ./check_http -vvv -I <proxy IP> -p 8081 -a <user>:<pw> -H www.google.com -u http://www.google.com/index.
> 
> GET http://www.google.com/index.html HTTP/1.0
> User-Agent: check_http/v2053 (nagios-plugins 1.4.13)
> Connection: close
> Host: www.google.com:8081
> Authorization: Basic bGRhcDpsZGFwcXVlcnk=
> CRITICAL - Socket timeout after 10 seconds
> ---
> 
> Any thoughts?  I think the problem is that the -a switch is a reference to authentication on the Host only.  Not sure how to pass authentication to the proxy.
> 
> Note also that I am checking from the Nagios box itself, as I am trying to determine functionality of the web access, rather than from the W2K3 server that acts as the proxy.

I have not gotten a chance to test this so I won't comment. on a side 
note, I am interested in having a look at the curl library to see what's 
involved in moving to using it if the advantages are great.




More information about the Devel mailing list