diff --git a/plugins/check_time.c b/plugins/check_time.c
index 0de6718bb05a57a5522d0e07e32fbf48b1a6c559..314b768369559fa8f02d158adbcf694cbcef3555 100644 (file)
--- a/plugins/check_time.c
+++ b/plugins/check_time.c
textdomain (PACKAGE);
if (process_arguments (argc, argv) != OK)
- usage (_("Invalid command arguments supplied\n"));
+ usage (_("Incorrect arguments supplied\n"));
/* initialize alarm signal handling */
signal (SIGALRM, socket_timeout_alarm_handler);
exit (STATE_OK);
case 'H': /* hostname */
if (is_host (optarg) == FALSE)
- usage (_("Invalid host name/address\n"));
+ usage2 (_("Invalid host name/address"), optarg);
server_address = optarg;
break;
case 'w': /* warning-variance */
break;
case 't': /* timeout */
if (!is_intnonneg (optarg))
- usage (_("Timeout interval must be a nonnegative integer\n"));
+ usage2 (_("Timeout interval must be a positive integer"), optarg);
else
socket_timeout = atoi (optarg);
break;
if (server_address == NULL) {
if (argc > c) {
if (is_host (argv[c]) == FALSE)
- usage (_("Invalid host name/address\n"));
+ usage2 (_("Invalid host name/address"), optarg);
server_address = argv[c];
}
else {
print_revision (progname, revision);
- printf (_("Copyright (c) 1999 Ethan Galstad\n"));
- printf (_(COPYRIGHT), copyright, email);
+ printf ("Copyright (c) 1999 Ethan Galstad\n");
+ printf (COPYRIGHT, copyright, email);
printf (_("\
This plugin will check the time on the specified host.\n\n"));