diff options
author | Benoit Mortier <opensides@users.sourceforge.net> | 2006-06-18 19:36:48 +0000 |
---|---|---|
committer | Benoit Mortier <opensides@users.sourceforge.net> | 2006-06-18 19:36:48 +0000 |
commit | f9394308c9c372bcf419a311c61ba420247ae613 (patch) | |
tree | 616e0bebcbe821703dff207f7f1b704c2deae349 /plugins/check_time.c | |
parent | cbbfed30eb01a702b2e61c0abcb64c834e73d654 (diff) | |
download | monitoring-plugins-f9394308c9c372bcf419a311c61ba420247ae613.tar.gz |
updating help and usage and license
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1434 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_time.c')
-rw-r--r-- | plugins/check_time.c | 82 |
1 files changed, 48 insertions, 34 deletions
diff --git a/plugins/check_time.c b/plugins/check_time.c index ff94d9b3..84cdcd53 100644 --- a/plugins/check_time.c +++ b/plugins/check_time.c | |||
@@ -1,26 +1,40 @@ | |||
1 | /****************************************************************************** | 1 | /****************************************************************************** |
2 | 2 | * | |
3 | This program is free software; you can redistribute it and/or modify | 3 | * Nagios check_time plugin |
4 | it under the terms of the GNU General Public License as published by | 4 | * |
5 | the Free Software Foundation; either version 2 of the License, or | 5 | * License: GPL |
6 | (at your option) any later version. | 6 | * Copyright (c) 1999-2006 nagios-plugins team |
7 | 7 | * | |
8 | This program is distributed in the hope that it will be useful, | 8 | * Last Modified: $Date$ |
9 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 | * |
10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 | * Description: |
11 | GNU General Public License for more details. | 11 | * |
12 | 12 | * This file contains the check_time plugin | |
13 | You should have received a copy of the GNU General Public License | 13 | * |
14 | along with this program; if not, write to the Free Software | 14 | * License Information: |
15 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | 15 | * |
16 | 16 | * This program is free software; you can redistribute it and/or modify | |
17 | $Id$ | 17 | * it under the terms of the GNU General Public License as published by |
18 | 18 | * the Free Software Foundation; either version 2 of the License, or | |
19 | * (at your option) any later version. | ||
20 | * | ||
21 | * This program is distributed in the hope that it will be useful, | ||
22 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
23 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
24 | * GNU General Public License for more details. | ||
25 | * | ||
26 | * You should have received a copy of the GNU General Public License | ||
27 | * along with this program; if not, write to the Free Software | ||
28 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
29 | * | ||
30 | * | ||
31 | * $Id$ | ||
32 | * | ||
19 | ******************************************************************************/ | 33 | ******************************************************************************/ |
20 | 34 | ||
21 | const char *progname = "check_time"; | 35 | const char *progname = "check_time"; |
22 | const char *revision = "$Revision$"; | 36 | const char *revision = "$Revision$"; |
23 | const char *copyright = "1999-2004"; | 37 | const char *copyright = "1999-2006"; |
24 | const char *email = "nagiosplug-devel@lists.sourceforge.net"; | 38 | const char *email = "nagiosplug-devel@lists.sourceforge.net"; |
25 | 39 | ||
26 | #include "common.h" | 40 | #include "common.h" |
@@ -324,7 +338,9 @@ print_help (void) | |||
324 | printf ("Copyright (c) 1999 Ethan Galstad\n"); | 338 | printf ("Copyright (c) 1999 Ethan Galstad\n"); |
325 | printf (COPYRIGHT, copyright, email); | 339 | printf (COPYRIGHT, copyright, email); |
326 | 340 | ||
327 | printf (_("This plugin will check the time on the specified host.\n\n")); | 341 | printf ("%s\n", _("This plugin will check the time on the specified host.")); |
342 | |||
343 | printf ("\n\n"); | ||
328 | 344 | ||
329 | print_usage (); | 345 | print_usage (); |
330 | 346 | ||
@@ -332,20 +348,18 @@ print_help (void) | |||
332 | 348 | ||
333 | printf (_(UT_HOST_PORT), 'p', myport); | 349 | printf (_(UT_HOST_PORT), 'p', myport); |
334 | 350 | ||
335 | printf (_("\ | 351 | printf (" %s\n", "-u, --udp"); |
336 | -u, --udp\n\ | 352 | printf (" %s\n", _("Use UDP to connect, not TCP")); |
337 | Use UDP to connect, not TCP\n\ | 353 | printf (" %s\n", "-w, --warning-variance=INTEGER"); |
338 | -w, --warning-variance=INTEGER\n\ | 354 | printf (" %s\n", _("Time difference (sec.) necessary to result in a warning status")); |
339 | Time difference (sec.) necessary to result in a warning status\n\ | 355 | printf (" %s\n", "-c, --critical-variance=INTEGER"); |
340 | -c, --critical-variance=INTEGER\n\ | 356 | printf (" %s\n", _("Time difference (sec.) necessary to result in a critical status")); |
341 | Time difference (sec.) necessary to result in a critical status\n\ | 357 | printf (" %s\n", "-W, --warning-connect=INTEGER"); |
342 | -W, --warning-connect=INTEGER\n\ | 358 | printf (" %s\n", _("Response time (sec.) necessary to result in warning status")); |
343 | Response time (sec.) necessary to result in warning status\n\ | 359 | printf (" %s\n", "-C, --critical-connect=INTEGER"); |
344 | -C, --critical-connect=INTEGER\n\ | 360 | printf (" %s\n", _("Response time (sec.) necessary to result in critical status")); |
345 | Response time (sec.) necessary to result in critical status\n")); | ||
346 | 361 | ||
347 | printf (_(UT_TIMEOUT), DEFAULT_SOCKET_TIMEOUT); | 362 | printf (_(UT_TIMEOUT), DEFAULT_SOCKET_TIMEOUT); |
348 | |||
349 | printf (_(UT_SUPPORT)); | 363 | printf (_(UT_SUPPORT)); |
350 | } | 364 | } |
351 | 365 | ||
@@ -354,7 +368,7 @@ print_help (void) | |||
354 | void | 368 | void |
355 | print_usage (void) | 369 | print_usage (void) |
356 | { | 370 | { |
357 | printf ("\ | 371 | printf (_("Usage:")); |
358 | Usage: %s -H <host_address> [-p port] [-u] [-w variance] [-c variance]\n\ | 372 | printf ("%s -H <host_address> [-p port] [-u] [-w variance] [-c variance]\n",progname); |
359 | [-W connect_time] [-C connect_time] [-t timeout]\n", progname); | 373 | printf (" [-W connect_time] [-C connect_time] [-t timeout]\n"); |
360 | } | 374 | } |