diff options
author | Jan Wagner <waja@cyconet.org> | 2014-02-17 12:18:17 +0100 |
---|---|---|
committer | Jan Wagner <waja@cyconet.org> | 2014-02-17 12:18:17 +0100 |
commit | 4f5e20187f1832fce1627c12b9331a05f9dda390 (patch) | |
tree | b037f2f76cea62a959b8057062d2c39d024604a0 /plugins | |
parent | ef46dabffaa3a7ca60faf4e9eac79b4245265549 (diff) | |
download | monitoring-plugins-4f5e20187f1832fce1627c12b9331a05f9dda390.tar.gz |
check_ssh: Reverting a387120
This seems to result into more problems in the wild then before 'fixing' it
Closes Debian #739254
Reopen Debian #734811
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_ssh.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/plugins/check_ssh.c b/plugins/check_ssh.c index 5c75d278..f4522e2b 100644 --- a/plugins/check_ssh.c +++ b/plugins/check_ssh.c | |||
@@ -250,7 +250,6 @@ ssh_connect (char *haddr, int hport, char *remote_version) | |||
250 | printf | 250 | printf |
251 | (_("SSH WARNING - %s (protocol %s) version mismatch, expected '%s'\n"), | 251 | (_("SSH WARNING - %s (protocol %s) version mismatch, expected '%s'\n"), |
252 | ssh_server, ssh_proto, remote_version); | 252 | ssh_server, ssh_proto, remote_version); |
253 | recv (sd, output, BUFF_SZ, 0); | ||
254 | close(sd); | 253 | close(sd); |
255 | exit (STATE_WARNING); | 254 | exit (STATE_WARNING); |
256 | } | 255 | } |
@@ -261,7 +260,6 @@ ssh_connect (char *haddr, int hport, char *remote_version) | |||
261 | (_("SSH OK - %s (protocol %s) | %s\n"), | 260 | (_("SSH OK - %s (protocol %s) | %s\n"), |
262 | ssh_server, ssh_proto, fperfdata("time", elapsed_time, "s", | 261 | ssh_server, ssh_proto, fperfdata("time", elapsed_time, "s", |
263 | FALSE, 0, FALSE, 0, TRUE, 0, TRUE, (int)socket_timeout)); | 262 | FALSE, 0, FALSE, 0, TRUE, 0, TRUE, (int)socket_timeout)); |
264 | recv (sd, output, BUFF_SZ, 0); | ||
265 | close(sd); | 263 | close(sd); |
266 | exit (STATE_OK); | 264 | exit (STATE_OK); |
267 | } | 265 | } |