diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2017-03-17 14:58:51 (GMT) |
---|---|---|
committer | Sven Nierlein <sven@nierlein.de> | 2018-10-22 14:28:51 (GMT) |
commit | 5d2fa85f1eba76bebd214b7425b08ac91c4d65af (patch) | |
tree | 6eb31cea4b99db468014cc51e0bc4732c6a654a3 /plugins/check_curl.c | |
parent | 20fd1ade9192b7615e1250b0d529f165844a5630 (diff) | |
download | monitoring-plugins-5d2fa85f1eba76bebd214b7425b08ac91c4d65af.tar.gz |
added help/usage and getopt long struct member for -k/--header option
Diffstat (limited to 'plugins/check_curl.c')
-rw-r--r-- | plugins/check_curl.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/check_curl.c b/plugins/check_curl.c index 10ccadf..b588eed 100644 --- a/plugins/check_curl.c +++ b/plugins/check_curl.c | |||
@@ -523,6 +523,7 @@ process_arguments (int argc, char **argv) | |||
523 | {"private-key", required_argument, 0, 'K'}, | 523 | {"private-key", required_argument, 0, 'K'}, |
524 | {"ca-cert", required_argument, 0, CA_CERT_OPTION}, | 524 | {"ca-cert", required_argument, 0, CA_CERT_OPTION}, |
525 | {"useragent", required_argument, 0, 'A'}, | 525 | {"useragent", required_argument, 0, 'A'}, |
526 | {"header", required_argument, 0, 'k'}, | ||
526 | {"invert-regex", no_argument, NULL, INVERT_REGEX}, | 527 | {"invert-regex", no_argument, NULL, INVERT_REGEX}, |
527 | {"header", required_argument, 0, 'k'}, | 528 | {"header", required_argument, 0, 'k'}, |
528 | {"extended-perfdata", no_argument, 0, 'E'}, | 529 | {"extended-perfdata", no_argument, 0, 'E'}, |
@@ -835,6 +836,8 @@ print_help (void) | |||
835 | printf (" %s\n", _("Username:password on sites with basic authentication")); | 836 | printf (" %s\n", _("Username:password on sites with basic authentication")); |
836 | printf (" %s\n", "-A, --useragent=STRING"); | 837 | printf (" %s\n", "-A, --useragent=STRING"); |
837 | printf (" %s\n", _("String to be sent in http header as \"User Agent\"")); | 838 | printf (" %s\n", _("String to be sent in http header as \"User Agent\"")); |
839 | printf (" %s\n", "-k, --header=STRING"); | ||
840 | printf (" %s\n", _("Any other tags to be sent in http header. Use multiple times for additional headers")); | ||
838 | printf (" %s\n", "-f, --onredirect=<ok|warning|critical|follow>"); | 841 | printf (" %s\n", "-f, --onredirect=<ok|warning|critical|follow>"); |
839 | printf (" %s\n", _("How to handle redirected pages.")); | 842 | printf (" %s\n", _("How to handle redirected pages.")); |
840 | 843 | ||
@@ -906,7 +909,7 @@ print_usage (void) | |||
906 | printf (" [-w <warn time>] [-c <critical time>] [-t <timeout>] [-a auth]\n"); | 909 | printf (" [-w <warn time>] [-c <critical time>] [-t <timeout>] [-a auth]\n"); |
907 | printf (" [-f <ok|warning|critcal|follow>]\n"); | 910 | printf (" [-f <ok|warning|critcal|follow>]\n"); |
908 | printf (" [-s string] [-r <regex>\n"); | 911 | printf (" [-s string] [-r <regex>\n"); |
909 | printf (" [-A string] [-S <version>] [-C]\n"); | 912 | printf (" [-A string] [-k string] [-S <version>] [-C]\n"); |
910 | printf (" [-v verbose]\n", progname); | 913 | printf (" [-v verbose]\n", progname); |
911 | printf ("\n"); | 914 | printf ("\n"); |
912 | printf ("%s\n", _("WARNING: check_curl is experimental. Please use")); | 915 | printf ("%s\n", _("WARNING: check_curl is experimental. Please use")); |