diff options
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/check_ssh.c | 3 | 
1 files changed, 1 insertions, 2 deletions
| diff --git a/plugins/check_ssh.c b/plugins/check_ssh.c index a3b5358c..d162e42f 100644 --- a/plugins/check_ssh.c +++ b/plugins/check_ssh.c | |||
| @@ -222,7 +222,6 @@ ssh_connect (char *haddr, int hport, char *remote_version, char *remote_protocol | |||
| 222 | char *ssh_server = NULL; | 222 | char *ssh_server = NULL; | 
| 223 | static char *rev_no = VERSION; | 223 | static char *rev_no = VERSION; | 
| 224 | struct timeval tv; | 224 | struct timeval tv; | 
| 225 | double elapsed_time = 0; | ||
| 226 | 225 | ||
| 227 | gettimeofday(&tv, NULL); | 226 | gettimeofday(&tv, NULL); | 
| 228 | 227 | ||
| @@ -334,6 +333,7 @@ ssh_connect (char *haddr, int hport, char *remote_version, char *remote_protocol | |||
| 334 | exit (STATE_CRITICAL); | 333 | exit (STATE_CRITICAL); | 
| 335 | } | 334 | } | 
| 336 | 335 | ||
| 336 | double elapsed_time = (double)deltime(tv) / 1.0e6; | ||
| 337 | if (remote_protocol && strcmp(remote_protocol, ssh_proto)) { | 337 | if (remote_protocol && strcmp(remote_protocol, ssh_proto)) { | 
| 338 | printf | 338 | printf | 
| 339 | (_("SSH CRITICAL - %s (protocol %s) protocol version mismatch, expected '%s' | %s\n"), | 339 | (_("SSH CRITICAL - %s (protocol %s) protocol version mismatch, expected '%s' | %s\n"), | 
| @@ -342,7 +342,6 @@ ssh_connect (char *haddr, int hport, char *remote_version, char *remote_protocol | |||
| 342 | close(sd); | 342 | close(sd); | 
| 343 | exit (STATE_CRITICAL); | 343 | exit (STATE_CRITICAL); | 
| 344 | } | 344 | } | 
| 345 | elapsed_time = (double)deltime(tv) / 1.0e6; | ||
| 346 | 345 | ||
| 347 | printf | 346 | printf | 
| 348 | (_("SSH OK - %s (protocol %s) | %s\n"), | 347 | (_("SSH OK - %s (protocol %s) | %s\n"), | 
