aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/monitoring-plugins/files/patch-plugins_check__ssh.c
diff options
context:
space:
mode:
Diffstat (limited to 'net-mgmt/monitoring-plugins/files/patch-plugins_check__ssh.c')
-rw-r--r--net-mgmt/monitoring-plugins/files/patch-plugins_check__ssh.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net-mgmt/monitoring-plugins/files/patch-plugins_check__ssh.c b/net-mgmt/monitoring-plugins/files/patch-plugins_check__ssh.c
index f6544773faa9..14b1ae8ab9ae 100644
--- a/net-mgmt/monitoring-plugins/files/patch-plugins_check__ssh.c
+++ b/net-mgmt/monitoring-plugins/files/patch-plugins_check__ssh.c
@@ -1,12 +1,12 @@
---- plugins/check_ssh.c.orig 2014-11-30 22:28:21 UTC
+--- plugins/check_ssh.c.orig 2016-11-29 08:45:08 UTC
+++ plugins/check_ssh.c
@@ -255,6 +255,7 @@ ssh_connect (char *haddr, int hport, cha
printf
- (_("SSH WARNING - %s (protocol %s) version mismatch, expected '%s'\n"),
+ (_("SSH CRITICAL - %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);
+ exit (STATE_CRITICAL);
}
@@ -273,6 +274,7 @@ ssh_connect (char *haddr, int hport, cha
(_("SSH OK - %s (protocol %s) | %s\n"),