summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: dca25be)
raw | patch | inline | side by side (parent: dca25be)
author | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | |
Fri, 9 Nov 2007 13:08:43 +0000 (13:08 +0000) | ||
committer | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | |
Fri, 9 Nov 2007 13:08:43 +0000 (13:08 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1813 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_ssh.c | patch | blob | history |
diff --git a/plugins/check_ssh.c b/plugins/check_ssh.c
index afe44c9512d668f9410393cddaf89bf838970dbd..9de7de3822ad324e827cca7308f66d006e70b558 100644 (file)
--- a/plugins/check_ssh.c
+++ b/plugins/check_ssh.c
recv (sd, output, BUFF_SZ, 0);
if (strncmp (output, "SSH", 3)) {
printf (_("Server answer: %s"), output);
+ close(sd);
exit (STATE_CRITICAL);
}
else {
printf
(_("SSH WARNING - %s (protocol %s) version mismatch, expected '%s'\n"),
ssh_server, ssh_proto, remote_version);
+ close(sd);
exit (STATE_WARNING);
}