diff options
Diffstat (limited to 'plugins/check_by_ssh.c')
-rw-r--r-- | plugins/check_by_ssh.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/check_by_ssh.c b/plugins/check_by_ssh.c index 20ae6283..f569731 100644 --- a/plugins/check_by_ssh.c +++ b/plugins/check_by_ssh.c | |||
@@ -69,17 +69,14 @@ main (int argc, char **argv) | |||
69 | 69 | ||
70 | /* process arguments */ | 70 | /* process arguments */ |
71 | if (process_arguments (argc, argv) != TRUE) | 71 | if (process_arguments (argc, argv) != TRUE) |
72 | usage (_("check_by_ssh: could not parse arguments\n")); | 72 | usage4 (_("Could not parse arguments")); |
73 | |||
74 | 73 | ||
75 | /* Set signal handling and alarm timeout */ | 74 | /* Set signal handling and alarm timeout */ |
76 | if (signal (SIGALRM, popen_timeout_alarm_handler) == SIG_ERR) { | 75 | if (signal (SIGALRM, popen_timeout_alarm_handler) == SIG_ERR) { |
77 | printf (_("Cannot catch SIGALRM")); | 76 | usage4 (_(" Cannot catch SIGALRM")); |
78 | return STATE_UNKNOWN; | ||
79 | } | 77 | } |
80 | alarm (timeout_interval); | 78 | alarm (timeout_interval); |
81 | 79 | ||
82 | |||
83 | /* run the command */ | 80 | /* run the command */ |
84 | 81 | ||
85 | if (verbose) | 82 | if (verbose) |