summaryrefslogtreecommitdiffstats
path: root/plugins/check_http.c
diff options
context:
space:
mode:
authorStefan Bethke <stb@lassitu.de>2018-10-09 22:40:07 (GMT)
committerStefan Bethke <stb@lassitu.de>2018-10-09 22:40:07 (GMT)
commit22c00bbe47d2bed5e77ad1d494502c4697a86abb (patch)
tree650476e2a18a1523cb686acf10eaa97cef99d9f7 /plugins/check_http.c
parent22f13aa2f19e1eb97f1a7feea248b3d25b038d92 (diff)
downloadmonitoring-plugins-22c00bbe47d2bed5e77ad1d494502c4697a86abb.tar.gz
Docs check_http: make -C obviousrefs/pull/1554/head
You need to read the docs carefully to realize that check_http has two modes of operation: the regular HTTP checks, and a TLS certificate check. Only one of these can be run in a single invocation. Fixes #1553
Diffstat (limited to 'plugins/check_http.c')
-rw-r--r--plugins/check_http.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c
index 86a36c2..d540bf7 100644
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
@@ -1532,6 +1532,10 @@ print_help (void)
1532 1532
1533 print_usage (); 1533 print_usage ();
1534 1534
1535#ifdef HAVE_SSL
1536 printf (_("In the first form, make an HTTP request."));
1537 printf (_("In the second form, connect to the server and check the TLS certificate."));
1538#endif
1535 printf (_("NOTE: One or both of -H and -I must be specified")); 1539 printf (_("NOTE: One or both of -H and -I must be specified"));
1536 1540
1537 printf ("\n"); 1541 printf ("\n");
@@ -1688,6 +1692,8 @@ print_usage (void)
1688 printf (" [-b proxy_auth] [-f <ok|warning|critcal|follow|sticky|stickyport>]\n"); 1692 printf (" [-b proxy_auth] [-f <ok|warning|critcal|follow|sticky|stickyport>]\n");
1689 printf (" [-e <expect>] [-d string] [-s string] [-l] [-r <regex> | -R <case-insensitive regex>]\n"); 1693 printf (" [-e <expect>] [-d string] [-s string] [-l] [-r <regex> | -R <case-insensitive regex>]\n");
1690 printf (" [-P string] [-m <min_pg_size>:<max_pg_size>] [-4|-6] [-N] [-M <age>]\n"); 1694 printf (" [-P string] [-m <min_pg_size>:<max_pg_size>] [-4|-6] [-N] [-M <age>]\n");
1691 printf (" [-A string] [-k string] [-S <version>] [--sni] [-C <warn_age>[,<crit_age>]]\n"); 1695 printf (" [-A string] [-k string] [-S <version>] [--sni]\n");
1692 printf (" [-T <content-type>] [-j method]\n"); 1696 printf (" [-T <content-type>] [-j method]\n");
1697 printf (" %s -H <vhost> | -I <IP-address> -C <warn_age>[,<crit_age>]\n",progname);
1698 printf (" [-p <port>] [-t <timeout>] [-4|-6] [--sni]\n");
1693} 1699}