diff options
author | demon <demon@FreeBSD.org> | 2013-09-25 21:06:12 +0800 |
---|---|---|
committer | demon <demon@FreeBSD.org> | 2013-09-25 21:06:12 +0800 |
commit | 2ab6194da4a70dedb2850bcd22321ace927f1e6a (patch) | |
tree | a667613b7edb14fbfb163fa3412dcd959acc9a96 /net-mgmt | |
parent | c5803e0e0d29fbbe6781ef241383bb0e579cc4bf (diff) | |
download | freebsd-ports-gnome-2ab6194da4a70dedb2850bcd22321ace927f1e6a.tar.gz freebsd-ports-gnome-2ab6194da4a70dedb2850bcd22321ace927f1e6a.tar.zst freebsd-ports-gnome-2ab6194da4a70dedb2850bcd22321ace927f1e6a.zip |
Get rid of sshd: Read from socket failed: Connection reset by peer [preauth]
in server logs when using check_ssh.
Diffstat (limited to 'net-mgmt')
-rw-r--r-- | net-mgmt/nagios-plugins/Makefile | 2 | ||||
-rw-r--r-- | net-mgmt/nagios-plugins/files/patch-plugins-check_ssh.c | 18 |
2 files changed, 19 insertions, 1 deletions
diff --git a/net-mgmt/nagios-plugins/Makefile b/net-mgmt/nagios-plugins/Makefile index 1fad7c0f629f..62bd82916875 100644 --- a/net-mgmt/nagios-plugins/Makefile +++ b/net-mgmt/nagios-plugins/Makefile @@ -3,7 +3,7 @@ PORTNAME= nagios-plugins PORTVERSION= 1.4.16 -PORTREVISION= 2 +PORTREVISION= 3 PORTEPOCH= 1 CATEGORIES= net-mgmt MASTER_SITES= SF/nagiosplug/nagiosplug/${PORTVERSION} diff --git a/net-mgmt/nagios-plugins/files/patch-plugins-check_ssh.c b/net-mgmt/nagios-plugins/files/patch-plugins-check_ssh.c new file mode 100644 index 000000000000..f68032e1640e --- /dev/null +++ b/net-mgmt/nagios-plugins/files/patch-plugins-check_ssh.c @@ -0,0 +1,18 @@ +--- plugins/check_ssh.c.orig 2012-06-27 21:32:47.000000000 +0400 ++++ plugins/check_ssh.c 2013-09-25 17:03:01.000000000 +0400 +@@ -250,6 +250,7 @@ ssh_connect (char *haddr, int hport, cha + 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, cha + (_("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); + } |