Page 1 of 1

Proxy a check of URl using check_http

Posted: Mon Oct 18, 2021 8:30 am
by btayl
I need to Proxy a check of URl do to a Netscaler Issue
I need to check if these two URLS are up
https://www.med.umich.edu
http://www.med.umich.edu

Am I using the command correctly
./check_http -H nagiosxi.med.umich.edu -u https://www.med.umich.edu

Re: Proxy a check of URl using check_http

Posted: Mon Oct 18, 2021 1:59 pm
by gsmith
Hi,

The plugin says:

CHECK SSL WEBSERVER CONTENT VIA PROXY USING HTTP 1.1 CONNECT:

check_http -I 192.168.100.35 -p 80 -u https://www.verisign.com/ -S -j CONNECT -H www.verisign.com
all these options are needed: -I <proxy> -p <proxy-port> -u <check-url> -S(sl) -j CONNECT -H <webserver>
a STATE_OK will be returned. When the server returns its content but exceeds
the 5-second threshold, a STATE_WARNING will be returned. When an error occurs,
a STATE_CRITICAL will be returned.

So it would be something like this for https:
./check_http -I <ip of proxyserver> -p <port of proxy server> -u https://www.med.umich.edu -S -j CONNECT -H www.med.umich.edu

and this for http:
./check_http -I <ip of proxyserver> -p <port of proxy server> -u http://www.med.umich.edu -j CONNECT -H www.med.umich.edu

Please let me know how it works out.

Thanks