diff options
Diffstat (limited to 'plugins/check_nagios.c')
-rw-r--r-- | plugins/check_nagios.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/check_nagios.c b/plugins/check_nagios.c index 7c36d116..618ee573 100644 --- a/plugins/check_nagios.c +++ b/plugins/check_nagios.c | |||
@@ -66,12 +66,11 @@ main (int argc, char **argv) | |||
66 | textdomain (PACKAGE); | 66 | textdomain (PACKAGE); |
67 | 67 | ||
68 | if (process_arguments (argc, argv) != TRUE) | 68 | if (process_arguments (argc, argv) != TRUE) |
69 | usage (_("check_nagios: could not parse arguments\n")); | 69 | usage4 (_("Could not parse arguments")); |
70 | 70 | ||
71 | /* Set signal handling and alarm */ | 71 | /* Set signal handling and alarm timeout */ |
72 | if (signal (SIGALRM, timeout_alarm_handler) == SIG_ERR) { | 72 | if (signal (SIGALRM, timeout_alarm_handler) == SIG_ERR) { |
73 | printf (_("Cannot catch SIGALRM")); | 73 | usage4 (_("Cannot catch SIGALRM")); |
74 | return STATE_UNKNOWN; | ||
75 | } | 74 | } |
76 | 75 | ||
77 | /* handle timeouts gracefully... */ | 76 | /* handle timeouts gracefully... */ |