diff options
author | Mathieu Arnold <mat@FreeBSD.org> | 2015-09-03 08:50:29 +0000 |
---|---|---|
committer | Mathieu Arnold <mat@FreeBSD.org> | 2015-09-03 08:50:29 +0000 |
commit | dffee50e8045982c868c0f89f4ffb40f049aa4e6 (patch) | |
tree | b22b44b4327760ed15e004b101ae9edc0da98d61 /net-mgmt/nagios-plugins/files/patch-plugins__check_ssh.c | |
parent | - Properly update icon caches when GTK2 and/or GTK3 option is set. (diff) |
Update to 2.1.1
Sponsored by: Absolight
Notes
Notes:
svn path=/head/; revision=395932
Diffstat (limited to 'net-mgmt/nagios-plugins/files/patch-plugins__check_ssh.c')
-rw-r--r-- | net-mgmt/nagios-plugins/files/patch-plugins__check_ssh.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/net-mgmt/nagios-plugins/files/patch-plugins__check_ssh.c b/net-mgmt/nagios-plugins/files/patch-plugins__check_ssh.c index eb5e038642c5..22862e326e3a 100644 --- a/net-mgmt/nagios-plugins/files/patch-plugins__check_ssh.c +++ b/net-mgmt/nagios-plugins/files/patch-plugins__check_ssh.c @@ -1,17 +1,17 @@ ---- plugins/check_ssh.c.orig 2014-03-04 21:41:57 UTC +--- plugins/check_ssh.c.orig 2015-07-30 21:40:06 UTC +++ plugins/check_ssh.c -@@ -255,6 +255,7 @@ +@@ -252,6 +252,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 @@ +@@ -270,6 +271,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)); + FALSE, 0, FALSE, 0, TRUE, 0, TRUE, (int)timeout_interval)); + recv (sd, output, BUFF_SZ, 0); close(sd); exit (STATE_OK); |