[Nagiosplug-devel] Re: check_http patch for proxy and SSL client_cert support

cH3rN0b|L chernobil at gmail.com
Thu Sep 16 09:32:12 CEST 2004


Hi Jos,

i tried your plugin with new enhacements, but it's not working for me :/

I'm trying to retrive an URL that need client certificate and i do the
following:

/usr/local/nagios/libexec/check_http -4 -i ./client.pem -k
./client.key -w 10 -c 20 -H 195.***.***.*** -u
https://www.onedoiman.com/one/url/index.jsp -v
SSL seeding: OK
GET https://www.onedoiman.com/one/url/index.jsp
HTTP/1.0
User-Agent: check_http/1.54 (nagios-plugins 1.4.0alpha1)
Host: 195.***.***.***


Error in recv()

Do you know where is the problem? What's the meaning of Error in recv()?

Thanks in advance!

Ivan Fontan [chernobil at gmail.com]

On Wed, 15 Sep 2004 13:15:53 +0200, Jos Visser
<josv-YF2jIvldYSM at public.gmane.org> wrote:

>Hi all,
>
>The accompanying patch adds support for HTTP proxies and SSL client
>certificates to the check_http plug-in.
>
>It adds four new command line options:
>
>	-i, --client_cert	Filename of the client certificate (PEM)
>	-k, --private_key	Filename of the private key file (PEM)
>	-x, --proxy-host	HTTP proxy hostname or IP address
>	-y, --proxy-port	port of the HTTP proxy
>
>(proxying works for SSL and non-SSL; proxy authentication not yet
>supported...)
>
>Use of -i automatically enables -S (--use-ssl).
>
>The patch is against the check_http.c that I checked out this very
>morning...
>
>Samples:
>
>$ ./check_http -H www.josvisser.nl -x localhost -y 3128
>HTTP OK HTTP/1.0 200 OK - 4887 bytes in 1.730 seconds
|time=1.729544s;;;0.000000 size=4887B;;;0
>
>$ ./check_http -H rours.org -i cert.pem -k key.pem -x localhost -y 3128
>HTTP WARNING: HTTP/1.1 403 Forbidden
>
>Share and enjoy!
>
>++Jos.es




More information about the Devel mailing list