summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2008-11-05 21:36:43 +0000
committerThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2008-11-05 21:36:43 +0000
commitdac9d73736570d175ce40a0cc5151e6b0ee3d3d0 (patch)
tree2d6ab5e4b99b4692d621bb264bdf80afcc04011b
parenta688e9338a64cd7469ef1241e34341a5a9d04bbb (diff)
downloadmonitoring-plugins-dac9d73736570d175ce40a0cc5151e6b0ee3d3d0.tar.gz
Fix check_tcp longoptions handling
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2072 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r--NEWS1
-rw-r--r--plugins/check_tcp.c8
2 files changed, 4 insertions, 5 deletions
diff --git a/NEWS b/NEWS
index 7c630c59..2686cd85 100644
--- a/NEWS
+++ b/NEWS
@@ -10,6 +10,7 @@ This file documents the major additions and syntax changes between releases.
10 Extra-opts (C plugins) does not allow trailing comments anymore (like N::P) 10 Extra-opts (C plugins) does not allow trailing comments anymore (like N::P)
11 Fixed dependency issue on libtap when ./configure --enable-libtap used. Warning: will install libtap 11 Fixed dependency issue on libtap when ./configure --enable-libtap used. Warning: will install libtap
12 Fixed segfault in extra-opts under some circumstance when reading multiple sections 12 Fixed segfault in extra-opts under some circumstance when reading multiple sections
13 Fix long options parsing in check_tcp
13 14
141.4.13 25th Sept 2008 151.4.13 25th Sept 2008
15 Fix Debian bug #460097: check_http --max-age broken (Hilko Bengen) 16 Fix Debian bug #460097: check_http --max-age broken (Hilko Bengen)
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c
index 3ad31318..f5ef7818 100644
--- a/plugins/check_tcp.c
+++ b/plugins/check_tcp.c
@@ -395,10 +395,10 @@ process_arguments (int argc, char **argv)
395 {"critical-codes", required_argument, 0, 'C'}, 395 {"critical-codes", required_argument, 0, 'C'},
396 {"warning-codes", required_argument, 0, 'W'}, 396 {"warning-codes", required_argument, 0, 'W'},
397 {"timeout", required_argument, 0, 't'}, 397 {"timeout", required_argument, 0, 't'},
398 {"protocol", required_argument, 0, 'P'}, 398 {"protocol", required_argument, 0, 'P'}, /* FIXME: Unhandled */
399 {"port", required_argument, 0, 'p'}, 399 {"port", required_argument, 0, 'p'},
400 {"escape", required_argument, 0, 'E'}, 400 {"escape", no_argument, 0, 'E'},
401 {"all", required_argument, 0, 'A'}, 401 {"all", no_argument, 0, 'A'},
402 {"send", required_argument, 0, 's'}, 402 {"send", required_argument, 0, 's'},
403 {"expect", required_argument, 0, 'e'}, 403 {"expect", required_argument, 0, 'e'},
404 {"maxbytes", required_argument, 0, 'm'}, 404 {"maxbytes", required_argument, 0, 'm'},
@@ -412,10 +412,8 @@ process_arguments (int argc, char **argv)
412 {"verbose", no_argument, 0, 'v'}, 412 {"verbose", no_argument, 0, 'v'},
413 {"version", no_argument, 0, 'V'}, 413 {"version", no_argument, 0, 'V'},
414 {"help", no_argument, 0, 'h'}, 414 {"help", no_argument, 0, 'h'},
415#ifdef HAVE_SSL
416 {"ssl", no_argument, 0, 'S'}, 415 {"ssl", no_argument, 0, 'S'},
417 {"certificate", required_argument, 0, 'D'}, 416 {"certificate", required_argument, 0, 'D'},
418#endif
419 {0, 0, 0, 0} 417 {0, 0, 0, 0}
420 }; 418 };
421 419