Proxy a check of URl using check_http

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
btayl
Posts: 131
Joined: Mon Aug 24, 2020 8:51 am

Proxy a check of URl using check_http

Post 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
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: Proxy a check of URl using check_http

Post 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
Locked