From 88c5e8e9d24540e6494787e144b7ee9a6751b28c Mon Sep 17 00:00:00 2001 From: Mathieu Arnold Date: Fri, 9 May 2014 17:53:39 +0000 Subject: Add monitoring-plugins, a fork of nagios-plugins. For now, use a snapshot from github until they release 1.6. Sponsored by: Absolight --- .../files/patch-plugins__check_ssh.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 net-mgmt/monitoring-plugins/files/patch-plugins__check_ssh.c (limited to 'net-mgmt/monitoring-plugins/files/patch-plugins__check_ssh.c') diff --git a/net-mgmt/monitoring-plugins/files/patch-plugins__check_ssh.c b/net-mgmt/monitoring-plugins/files/patch-plugins__check_ssh.c new file mode 100644 index 000000000000..780f14984e83 --- /dev/null +++ b/net-mgmt/monitoring-plugins/files/patch-plugins__check_ssh.c @@ -0,0 +1,18 @@ +--- ./plugins/check_ssh.c.orig 2014-04-27 19:59:06.000000000 +0200 ++++ ./plugins/check_ssh.c 2014-05-09 18:45:31.000000000 +0200 +@@ -250,6 +250,7 @@ + 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 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