From 3c90a370ea5860ed66d35285aba8304ed4f5c9ba Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 28 Oct 2013 23:58:36 +0100 Subject: Update URLs and mailing list addresses Now that we moved our infrastructure away from SourceForge, update the URLs and mailing list addresses accordingly. --- plugins/check_ssh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/check_ssh.c') diff --git a/plugins/check_ssh.c b/plugins/check_ssh.c index 6e8a5fc5..1c032a4f 100644 --- a/plugins/check_ssh.c +++ b/plugins/check_ssh.c @@ -30,7 +30,7 @@ const char *progname = "check_ssh"; const char *copyright = "2000-2007"; -const char *email = "nagiosplug-devel@lists.sourceforge.net"; +const char *email = "devel@nagios-plugins.org"; #include "common.h" #include "netutils.h" -- cgit v1.2.3 From a3871201821d9abe8a12e637e7dd00d9d1dde2a5 Mon Sep 17 00:00:00 2001 From: Jan Wagner Date: Fri, 10 Jan 2014 15:56:30 +0100 Subject: check_ssh: Get rid of sshd: Read from socket failed: Connection reset by peer This fix was grabbed from FreeBSD downstream and provided by Dmitry Sivachenko. Fixes Debian Bug #734811 --- plugins/check_ssh.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins/check_ssh.c') diff --git a/plugins/check_ssh.c b/plugins/check_ssh.c index 1c032a4f..2d635281 100644 --- a/plugins/check_ssh.c +++ b/plugins/check_ssh.c @@ -250,6 +250,7 @@ ssh_connect (char *haddr, int hport, char *remote_version) printf (_("SSH WARNING - %s (protocol %s) version mismatch, expected '%s'\n"), ssh_server, ssh_proto, remote_version); + recv (sd, output, BUFF_SZ, 0); close(sd); exit (STATE_WARNING); } @@ -260,6 +261,7 @@ ssh_connect (char *haddr, int hport, char *remote_version) (_("SSH OK - %s (protocol %s) | %s\n"), ssh_server, ssh_proto, fperfdata("time", elapsed_time, "s", FALSE, 0, FALSE, 0, TRUE, 0, TRUE, (int)socket_timeout)); + recv (sd, output, BUFF_SZ, 0); close(sd); exit (STATE_OK); } -- cgit v1.2.3