summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorSven Nierlein <sven@nierlein.de>2017-05-28 08:16:01 (GMT)
committerSven Nierlein <sven@nierlein.de>2018-10-22 14:30:31 (GMT)
commite09629ef65e91c56744c29fbee9ac6e6b24ed1db (patch)
tree2302a1acd07c4923495d139599ae002713950e38 /plugins
parent7344524655058bb0d28f6850b1e671e22527074e (diff)
downloadmonitoring-plugins-e09629ef65e91c56744c29fbee9ac6e6b24ed1db.tar.gz
check_curl: add docs about https proxy
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_curl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/check_curl.c b/plugins/check_curl.c
index 82324d3..e7e05a5 100644
--- a/plugins/check_curl.c
+++ b/plugins/check_curl.c
@@ -1709,7 +1709,10 @@ print_help (void)
1709 printf (" %s\n", _("A STATE_CRITICAL will be returned when certificate expires in less than 14 days")); 1709 printf (" %s\n", _("A STATE_CRITICAL will be returned when certificate expires in less than 14 days"));
1710 1710
1711 printf (" %s\n\n", "CHECK SSL WEBSERVER CONTENT VIA PROXY USING HTTP 1.1 CONNECT: "); 1711 printf (" %s\n\n", "CHECK SSL WEBSERVER CONTENT VIA PROXY USING HTTP 1.1 CONNECT: ");
1712 printf (" %s\n", _("check_curl -I 192.168.100.35 -p 80 -u https://www.verisign.com/ -S -j CONNECT -H www.verisign.com ")); 1712 printf (" %s\n", _("It is recommended to use an environment proxy like:"));
1713 printf (" %s\n", _("https_proxy=http://127.0.0.1:3128 ./check_curl -H www.verisign.com -S"));
1714 printf (" %s\n", _("but proxy requests in check_http style still works:"));
1715 printf (" %s\n", _("check_curl -I 192.168.100.35 -p 3128 -u https://www.verisign.com/ -S -j CONNECT -H www.verisign.com "));
1713 printf (" %s\n", _("all these options are needed: -I <proxy> -p <proxy-port> -u <check-url> -S(sl) -j CONNECT -H <webserver>")); 1716 printf (" %s\n", _("all these options are needed: -I <proxy> -p <proxy-port> -u <check-url> -S(sl) -j CONNECT -H <webserver>"));
1714 printf (" %s\n", _("a STATE_OK will be returned. When the server returns its content but exceeds")); 1717 printf (" %s\n", _("a STATE_OK will be returned. When the server returns its content but exceeds"));
1715 printf (" %s\n", _("the 5-second threshold, a STATE_WARNING will be returned. When an error occurs,")); 1718 printf (" %s\n", _("the 5-second threshold, a STATE_WARNING will be returned. When an error occurs,"));