check_http using a proxy

Marc Powell marc at ena.com
Wed Jul 19 18:31:10 CEST 2006



> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Arenas Alvaro
> Sent: Wednesday, July 19, 2006 4:01 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] check_http using a proxy
> 
> Hi,
> 
> I want to test the validate of a SSL certificate. I already know the
> parameters I have to give to check_http to do this. However the nagios
> machine is in a closed network and to access the machine with the
> certificate  a proxy must be used.
> How can do this? check_http doesn give any option to specify a proxy,
so
> far I read.

You can use check_http via proxy as below --

define command {
    command_name                   check_proxy
    command_line                   $USER1$/check_http -H www.mysite.foo
$HOSTADDRESS$ -p 8080 -wt 20 -ct 30 -to 35 -u http://www.mysite.foo
    }

Where $HOSTADDRESS$ is the IP of your proxy. However, it is my
understanding that you can't check the validity of the Certificate
because check_http doesn't implement the CONNECT protocol to tunnel the
HTTPS connection to the other side.

--
Marc

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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