summaryrefslogtreecommitdiffstats
path: root/plugins/check_http.c
diff options
context:
space:
mode:
authorTon Voon <tonvoon@users.sourceforge.net>2007-03-06 22:45:57 +0000
committerTon Voon <tonvoon@users.sourceforge.net>2007-03-06 22:45:57 +0000
commitbc489aab2dbbd26864148400eabf34b5b0d9065f (patch)
tree3f69298b7119999b1c615ec9a310d96227c37a8f /plugins/check_http.c
parentcf2ba0769c55dc4d0eeb5f4d71b9f422ab0edcfc (diff)
downloadmonitoring-plugins-bc489aab2dbbd26864148400eabf34b5b0d9065f.tar.gz
Fix option handling (Nobuhiro Ban - 1657280)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1632 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_http.c')
-rw-r--r--plugins/check_http.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c
index 82f6ebde..de00e029 100644
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
@@ -175,15 +175,16 @@ process_arguments (int argc, char **argv)
175 int option = 0; 175 int option = 0;
176 static struct option longopts[] = { 176 static struct option longopts[] = {
177 STD_LONG_OPTS, 177 STD_LONG_OPTS,
178 {"file",required_argument,0,'F'},
179 {"link", no_argument, 0, 'L'}, 178 {"link", no_argument, 0, 'L'},
180 {"nohtml", no_argument, 0, 'n'}, 179 {"nohtml", no_argument, 0, 'n'},
181 {"ssl", no_argument, 0, 'S'}, 180 {"ssl", no_argument, 0, 'S'},
182 {"verbose", no_argument, 0, 'v'},
183 {"post", required_argument, 0, 'P'}, 181 {"post", required_argument, 0, 'P'},
184 {"IP-address", required_argument, 0, 'I'}, 182 {"IP-address", required_argument, 0, 'I'},
185 {"url", required_argument, 0, 'u'}, 183 {"url", required_argument, 0, 'u'},
184 {"port", required_argument, 0, 'p'},
185 {"authorization", required_argument, 0, 'a'},
186 {"string", required_argument, 0, 's'}, 186 {"string", required_argument, 0, 's'},
187 {"expect", required_argument, 0, 'e'},
187 {"regex", required_argument, 0, 'r'}, 188 {"regex", required_argument, 0, 'r'},
188 {"ereg", required_argument, 0, 'r'}, 189 {"ereg", required_argument, 0, 'r'},
189 {"eregi", required_argument, 0, 'R'}, 190 {"eregi", required_argument, 0, 'R'},
@@ -1295,7 +1296,7 @@ print_help (void)
1295 printf (" %s\n", _("String to be sent in http header as \"User Agent\"")); 1296 printf (" %s\n", _("String to be sent in http header as \"User Agent\""));
1296 printf (" %s\n", "-k, --header=STRING"); 1297 printf (" %s\n", "-k, --header=STRING");
1297 printf (" %s\n", _(" Any other tags to be sent in http header. Use multiple times for additional headers")); 1298 printf (" %s\n", _(" Any other tags to be sent in http header. Use multiple times for additional headers"));
1298 printf (" %s\n", "-L, --link=URL"); 1299 printf (" %s\n", "-L, --link");
1299 printf (" %s\n", _("Wrap output in HTML link (obsoleted by urlize)")); 1300 printf (" %s\n", _("Wrap output in HTML link (obsoleted by urlize)"));
1300 printf (" %s\n", "-f, --onredirect=<ok|warning|critical|follow>"); 1301 printf (" %s\n", "-f, --onredirect=<ok|warning|critical|follow>");
1301 printf (" %s\n", _("How to handle redirected pages")); 1302 printf (" %s\n", _("How to handle redirected pages"));