summaryrefslogtreecommitdiffstats
path: root/plugins/check_time.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_time.c')
-rw-r--r--plugins/check_time.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/check_time.c b/plugins/check_time.c
index 1f8b3bd8..314b7683 100644
--- a/plugins/check_time.c
+++ b/plugins/check_time.c
@@ -226,7 +226,7 @@ process_arguments (int argc, char **argv)
226 exit (STATE_OK); 226 exit (STATE_OK);
227 case 'H': /* hostname */ 227 case 'H': /* hostname */
228 if (is_host (optarg) == FALSE) 228 if (is_host (optarg) == FALSE)
229 usage (_("Invalid host name/address\n")); 229 usage2 (_("Invalid host name/address"), optarg);
230 server_address = optarg; 230 server_address = optarg;
231 break; 231 break;
232 case 'w': /* warning-variance */ 232 case 'w': /* warning-variance */
@@ -288,7 +288,7 @@ process_arguments (int argc, char **argv)
288 break; 288 break;
289 case 't': /* timeout */ 289 case 't': /* timeout */
290 if (!is_intnonneg (optarg)) 290 if (!is_intnonneg (optarg))
291 usage (_("Timeout interval must be a nonnegative integer\n")); 291 usage2 (_("Timeout interval must be a positive integer"), optarg);
292 else 292 else
293 socket_timeout = atoi (optarg); 293 socket_timeout = atoi (optarg);
294 break; 294 break;
@@ -301,7 +301,7 @@ process_arguments (int argc, char **argv)
301 if (server_address == NULL) { 301 if (server_address == NULL) {
302 if (argc > c) { 302 if (argc > c) {
303 if (is_host (argv[c]) == FALSE) 303 if (is_host (argv[c]) == FALSE)
304 usage (_("Invalid host name/address\n")); 304 usage2 (_("Invalid host name/address"), optarg);
305 server_address = argv[c]; 305 server_address = argv[c];
306 } 306 }
307 else { 307 else {
@@ -325,8 +325,8 @@ print_help (void)
325 325
326 print_revision (progname, revision); 326 print_revision (progname, revision);
327 327
328 printf (_("Copyright (c) 1999 Ethan Galstad\n")); 328 printf ("Copyright (c) 1999 Ethan Galstad\n");
329 printf (_(COPYRIGHT), copyright, email); 329 printf (COPYRIGHT, copyright, email);
330 330
331 printf (_("\ 331 printf (_("\
332This plugin will check the time on the specified host.\n\n")); 332This plugin will check the time on the specified host.\n\n"));