aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/monitoring-plugins/files/patch-plugins_check__ssh.c
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2016-12-21 11:12:50 +0000
committerMathieu Arnold <mat@FreeBSD.org>2016-12-21 11:12:50 +0000
commit8d367325229095d906cb94e5736dfa77ce105566 (patch)
tree91db42f4e0cd8d0df7275f908ae84a9efcb2c2c9 /net-mgmt/monitoring-plugins/files/patch-plugins_check__ssh.c
parent7531dc48f30d45d70f90c4a9d964d14b6993e029 (diff)
Notes
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"),