summaryrefslogtreecommitdiffstats
path: root/plugins/check_time.c
diff options
context:
space:
mode:
authorTon Voon <tonvoon@users.sourceforge.net>2004-11-24 00:46:40 (GMT)
committerTon Voon <tonvoon@users.sourceforge.net>2004-11-24 00:46:40 (GMT)
commit0c1c9f51e2c33db04918d2aa322fd1f9a688979b (patch)
treec7956483bce0deb4b73ca3a6b9d0b7f2e97620db /plugins/check_time.c
parent589d4664919638bedd6e2e1710c323887d19584a (diff)
downloadmonitoring-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.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/check_time.c b/plugins/check_time.c
index 1f8b3bd..314b768 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"));