summaryrefslogtreecommitdiffstats
path: root/plugins/check_curl.c
diff options
context:
space:
mode:
authorSven Nierlein <sven@nierlein.de>2017-05-28 19:05:33 (GMT)
committerSven Nierlein <sven@nierlein.de>2018-10-22 14:30:31 (GMT)
commit8172fe7f3052d32713b8c193429844cc243df47b (patch)
treef176c9dfe008fe74b471fbfbf9ea0a113930263b /plugins/check_curl.c
parent603dd23d116173f94669ee2d35ca89b8f7b362d6 (diff)
downloadmonitoring-plugins-8172fe7f3052d32713b8c193429844cc243df47b.tar.gz
check_curl: update docs
Diffstat (limited to 'plugins/check_curl.c')
-rw-r--r--plugins/check_curl.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/plugins/check_curl.c b/plugins/check_curl.c
index da48750..9d4c3f0 100644
--- a/plugins/check_curl.c
+++ b/plugins/check_curl.c
@@ -1707,11 +1707,19 @@ print_help (void)
1707 printf (" %s\n", _("a STATE_OK is returned. When the certificate is still valid, but for less than")); 1707 printf (" %s\n", _("a STATE_OK is returned. When the certificate is still valid, but for less than"));
1708 printf (" %s\n", _("30 days, but more than 14 days, a STATE_WARNING is returned.")); 1708 printf (" %s\n", _("30 days, but more than 14 days, a STATE_WARNING is returned."));
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#endif
1711
1712 printf ("\n %s\n", "CHECK WEBSERVER CONTENT VIA PROXY:");
1713 printf (" %s\n", _("It is recommended to use an environment proxy like:"));
1714 printf (" %s\n", _("http_proxy=http://192.168.100.35:3128 ./check_curl -H www.monitoring-plugins.org"));
1715 printf (" %s\n", _("legacy proxy requests in check_http style still work:"));
1716 printf (" %s\n", _("check_curl -I 192.168.100.35 -p 3128 -u http://www.monitoring-plugins.org/ -H www.monitoring-plugins.org"));
1710 1717
1711 printf (" %s\n\n", "CHECK SSL WEBSERVER CONTENT VIA PROXY USING HTTP 1.1 CONNECT: "); 1718#ifdef LIBCURL_FEATURE_SSL
1719 printf ("\n %s\n", "CHECK SSL WEBSERVER CONTENT VIA PROXY USING HTTP 1.1 CONNECT: ");
1712 printf (" %s\n", _("It is recommended to use an environment proxy like:")); 1720 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")); 1721 printf (" %s\n", _("https_proxy=http://192.168.100.35:3128 ./check_curl -H www.verisign.com -S"));
1714 printf (" %s\n", _("but proxy requests in check_http style still works:")); 1722 printf (" %s\n", _("legacy proxy requests in check_http style still work:"));
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 ")); 1723 printf (" %s\n", _("check_curl -I 192.168.100.35 -p 3128 -u https://www.verisign.com/ -S -j CONNECT -H www.verisign.com "));
1716 printf (" %s\n", _("all these options are needed: -I <proxy> -p <proxy-port> -u <check-url> -S(sl) -j CONNECT -H <webserver>")); 1724 printf (" %s\n", _("all these options are needed: -I <proxy> -p <proxy-port> -u <check-url> -S(sl) -j CONNECT -H <webserver>"));
1717 printf (" %s\n", _("a STATE_OK will be returned. When the server returns its content but exceeds")); 1725 printf (" %s\n", _("a STATE_OK will be returned. When the server returns its content but exceeds"));