diff options
author | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2008-11-05 21:36:43 +0000 |
---|---|---|
committer | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2008-11-05 21:36:43 +0000 |
commit | dac9d73736570d175ce40a0cc5151e6b0ee3d3d0 (patch) | |
tree | 2d6ab5e4b99b4692d621bb264bdf80afcc04011b /plugins | |
parent | a688e9338a64cd7469ef1241e34341a5a9d04bbb (diff) | |
download | monitoring-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
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_tcp.c | 8 |
1 files changed, 3 insertions, 5 deletions
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) {"critical-codes", required_argument, 0, 'C'}, {"warning-codes", required_argument, 0, 'W'}, {"timeout", required_argument, 0, 't'}, - {"protocol", required_argument, 0, 'P'}, + {"protocol", required_argument, 0, 'P'}, /* FIXME: Unhandled */ {"port", required_argument, 0, 'p'}, - {"escape", required_argument, 0, 'E'}, - {"all", required_argument, 0, 'A'}, + {"escape", no_argument, 0, 'E'}, + {"all", no_argument, 0, 'A'}, {"send", required_argument, 0, 's'}, {"expect", required_argument, 0, 'e'}, {"maxbytes", required_argument, 0, 'm'}, @@ -412,10 +412,8 @@ process_arguments (int argc, char **argv) {"verbose", no_argument, 0, 'v'}, {"version", no_argument, 0, 'V'}, {"help", no_argument, 0, 'h'}, -#ifdef HAVE_SSL {"ssl", no_argument, 0, 'S'}, {"certificate", required_argument, 0, 'D'}, -#endif {0, 0, 0, 0} }; |