aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Sven Nierlein <sven@nierlein.de> 2021-04-07 17:16:12 +0200
committerGravatar GitHub <noreply@github.com> 2021-04-07 17:16:12 +0200
commitb145ea19981a1ac07c8d8a0eaeb7f1450f4b1914 (patch)
treeb00d6e8552fa3c6ea9f921031387aeb1b93c2bcf
parent4ad33d9f2747d710beefd8ca7daa357669cec717 (diff)
parent22c00bbe47d2bed5e77ad1d494502c4697a86abb (diff)
downloadmonitoring-plugins-b145ea19981a1ac07c8d8a0eaeb7f1450f4b1914.tar.gz
Merge pull request #1554 from stblassitude/master
Docs check_http: make -C obvious
-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 986cdf2f..0b712665 100644
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
@@ -1567,6 +1567,10 @@ print_help (void)
print_usage ();
+#ifdef HAVE_SSL
+ printf (_("In the first form, make an HTTP request."));
+ printf (_("In the second form, connect to the server and check the TLS certificate."));
+#endif
printf (_("NOTE: One or both of -H and -I must be specified"));
printf ("\n");
@@ -1726,6 +1730,8 @@ print_usage (void)
printf (" [-b proxy_auth] [-f <ok|warning|critcal|follow|sticky|stickyport>]\n");
printf (" [-e <expect>] [-d string] [-s string] [-l] [-r <regex> | -R <case-insensitive regex>]\n");
printf (" [-P string] [-m <min_pg_size>:<max_pg_size>] [-4|-6] [-N] [-M <age>]\n");
- printf (" [-A string] [-k string] [-S <version>] [--sni] [-C <warn_age>[,<crit_age>]]\n");
+ printf (" [-A string] [-k string] [-S <version>] [--sni]\n");
printf (" [-T <content-type>] [-j method]\n");
+ printf (" %s -H <vhost> | -I <IP-address> -C <warn_age>[,<crit_age>]\n",progname);
+ printf (" [-p <port>] [-t <timeout>] [-4|-6] [--sni]\n");
}