summaryrefslogtreecommitdiffstats
path: root/plugins/check_real.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_real.c')
-rw-r--r--plugins/check_real.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/plugins/check_real.c b/plugins/check_real.c
index 30424656..eb892c77 100644
--- a/plugins/check_real.c
+++ b/plugins/check_real.c
@@ -330,7 +330,7 @@ process_arguments (int argc, char **argv)
330 check_critical_time = TRUE; 330 check_critical_time = TRUE;
331 } 331 }
332 else { 332 else {
333 usage4 (_("Critical time must be a nonnegative integer")); 333 usage4 (_("Critical time must be a positive integer"));
334 } 334 }
335 break; 335 break;
336 case 'v': /* verbose */ 336 case 'v': /* verbose */
@@ -341,7 +341,7 @@ process_arguments (int argc, char **argv)
341 socket_timeout = atoi (optarg); 341 socket_timeout = atoi (optarg);
342 } 342 }
343 else { 343 else {
344 usage4 (_("Time interval must be a nonnegative integer")); 344 usage4 (_("Timeout interval must be a positive integer"));
345 } 345 }
346 break; 346 break;
347 case 'V': /* version */ 347 case 'V': /* version */
@@ -351,9 +351,7 @@ process_arguments (int argc, char **argv)
351 print_help (); 351 print_help ();
352 exit (STATE_OK); 352 exit (STATE_OK);
353 case '?': /* usage */ 353 case '?': /* usage */
354 printf (_("%s: Unknown argument: %s\n\n"), progname, optarg); 354 usage2 (_("Unknown argument"), optarg);
355 print_usage ();
356 exit (STATE_UNKNOWN);
357 } 355 }
358 } 356 }
359 357
@@ -368,7 +366,7 @@ process_arguments (int argc, char **argv)
368 } 366 }
369 367
370 if (server_address==NULL) 368 if (server_address==NULL)
371 usage (_("You must provide a server to check\n")); 369 usage4 (_("You must provide a server to check"));
372 370
373 if (host_name==NULL) 371 if (host_name==NULL)
374 host_name = strdup (server_address); 372 host_name = strdup (server_address);