diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2004-11-24 00:46:40 +0000 |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2004-11-24 00:46:40 +0000 |
commit | 0c1c9f51e2c33db04918d2aa322fd1f9a688979b (patch) | |
tree | c7956483bce0deb4b73ca3a6b9d0b7f2e97620db /plugins/check_time.c | |
parent | 589d4664919638bedd6e2e1710c323887d19584a (diff) | |
download | monitoring-plugins-0c1c9f51e2c33db04918d2aa322fd1f9a688979b.tar.gz |
Making messages more consistent
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@930 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_time.c')
-rw-r--r-- | plugins/check_time.c | 10 |
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) 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 */ @@ -288,7 +288,7 @@ process_arguments (int argc, char **argv) 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; @@ -301,7 +301,7 @@ process_arguments (int argc, char **argv) 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 { @@ -325,8 +325,8 @@ print_help (void) 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")); |