|
@@ -226,7 +226,7 @@ process_arguments (int argc, char **argv)
|
|
|
exit (STATE_OK);
|
|
exit (STATE_OK);
|
|
|
case 'H': /* hostname */
|
|
case 'H': /* hostname */
|
|
|
if (is_host (optarg) == FALSE)
|
|
if (is_host (optarg) == FALSE)
|
|
|
- usage (_("Invalid host name/address\n"));
|
|
|
|
|
|
|
+ usage2 (_("Invalid host name/address"), optarg);
|
|
|
server_address = optarg;
|
|
server_address = optarg;
|
|
|
break;
|
|
break;
|
|
|
case 'w': /* warning-variance */
|
|
case 'w': /* warning-variance */
|
|
@@ -288,7 +288,7 @@ process_arguments (int argc, char **argv)
|
|
|
break;
|
|
break;
|
|
|
case 't': /* timeout */
|
|
case 't': /* timeout */
|
|
|
if (!is_intnonneg (optarg))
|
|
if (!is_intnonneg (optarg))
|
|
|
- usage (_("Timeout interval must be a nonnegative integer\n"));
|
|
|
|
|
|
|
+ usage2 (_("Timeout interval must be a positive integer"), optarg);
|
|
|
else
|
|
else
|
|
|
socket_timeout = atoi (optarg);
|
|
socket_timeout = atoi (optarg);
|
|
|
break;
|
|
break;
|
|
@@ -301,7 +301,7 @@ process_arguments (int argc, char **argv)
|
|
|
if (server_address == NULL) {
|
|
if (server_address == NULL) {
|
|
|
if (argc > c) {
|
|
if (argc > c) {
|
|
|
if (is_host (argv[c]) == FALSE)
|
|
if (is_host (argv[c]) == FALSE)
|
|
|
- usage (_("Invalid host name/address\n"));
|
|
|
|
|
|
|
+ usage2 (_("Invalid host name/address"), optarg);
|
|
|
server_address = argv[c];
|
|
server_address = argv[c];
|
|
|
}
|
|
}
|
|
|
else {
|
|
else {
|
|
@@ -325,8 +325,8 @@ print_help (void)
|
|
|
|
|
|
|
|
print_revision (progname, revision);
|
|
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 (_("\
|
|
printf (_("\
|
|
|
This plugin will check the time on the specified host.\n\n"));
|
|
This plugin will check the time on the specified host.\n\n"));
|