summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1e2982f)
raw | patch | inline | side by side (parent: 1e2982f)
author | Matthias Eble <psychotrahe@users.sourceforge.net> | |
Tue, 29 May 2007 20:01:26 +0000 (20:01 +0000) | ||
committer | Matthias Eble <psychotrahe@users.sourceforge.net> | |
Tue, 29 May 2007 20:01:26 +0000 (20:01 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1723 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_tcp.c | patch | blob | history |
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c
index a977077c3fce99b0586d0f697b22c29299d0c382..315c75255ccb16e2ed490f621d6b74cae3525256 100644 (file)
--- a/plugins/check_tcp.c
+++ b/plugins/check_tcp.c
asprintf(&server_send, "%s", optarg);
break;
case 'e': /* expect string (may be repeated) */
- EXPECT = NULL;
flags &= ~FLAG_EXACT_MATCH;
if (server_expect_count == 0)
server_expect = malloc (sizeof (char *) * (++server_expect_count));
printf (" %s\n", "-s, --send=STRING");
printf (" %s\n", _("String to send to the server"));
printf (" %s\n", "-e, --expect=STRING");
- printf (" %s\n", _("String to expect in server response"));
+ printf (" %s %s\n", _("String to expect in server response"), _("(may be repeated)"));
printf (" %s\n", "-q, --quit=STRING");
printf (" %s\n", _("String to send server to initiate a clean close of the connection"));
printf (" %s\n", "-r, --refuse=ok|warn|crit");