diff options
author | Benoit Mortier <opensides@users.sourceforge.net> | 2006-06-17 12:28:43 (GMT) |
---|---|---|
committer | Benoit Mortier <opensides@users.sourceforge.net> | 2006-06-17 12:28:43 (GMT) |
commit | cbbfed30eb01a702b2e61c0abcb64c834e73d654 (patch) | |
tree | b9d050fa415733f80306530e1ed028ef3ce9759a /plugins/check_ping.c | |
parent | e5324624caefb201439012d795bebdf46966ec9c (diff) | |
download | monitoring-plugins-cbbfed30eb01a702b2e61c0abcb64c834e73d654.tar.gz |
cleaning up help and usage
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1433 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_ping.c')
-rw-r--r-- | plugins/check_ping.c | 54 |
1 files changed, 29 insertions, 25 deletions
diff --git a/plugins/check_ping.c b/plugins/check_ping.c index a7b7d90..4168f35 100644 --- a/plugins/check_ping.c +++ b/plugins/check_ping.c | |||
@@ -20,7 +20,7 @@ | |||
20 | 20 | ||
21 | const char *progname = "check_ping"; | 21 | const char *progname = "check_ping"; |
22 | const char *revision = "$Revision$"; | 22 | const char *revision = "$Revision$"; |
23 | const char *copyright = "2000-2004"; | 23 | const char *copyright = "2000-2006"; |
24 | const char *email = "nagiosplug-devel@lists.sourceforge.net"; | 24 | const char *email = "nagiosplug-devel@lists.sourceforge.net"; |
25 | 25 | ||
26 | #include "common.h" | 26 | #include "common.h" |
@@ -518,7 +518,9 @@ print_help (void) | |||
518 | printf ("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>"); | 518 | printf ("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>"); |
519 | printf (COPYRIGHT, copyright, email); | 519 | printf (COPYRIGHT, copyright, email); |
520 | 520 | ||
521 | printf (_("Use ping to check connection statistics for a remote host.\n\n")); | 521 | printf (_("Use ping to check connection statistics for a remote host.")); |
522 | |||
523 | printf ("\n\n"); | ||
522 | 524 | ||
523 | print_usage (); | 525 | print_usage (); |
524 | 526 | ||
@@ -526,31 +528,32 @@ print_help (void) | |||
526 | 528 | ||
527 | printf (_(UT_IPv46)); | 529 | printf (_(UT_IPv46)); |
528 | 530 | ||
529 | printf (_("\ | 531 | printf (" %s\n", "-H, --hostname=HOST"); |
530 | -H, --hostname=HOST\n\ | 532 | printf (" %s\n", _("host to ping")); |
531 | host to ping\n\ | 533 | printf (" %s\n", "-w, --warning=THRESHOLD"); |
532 | -w, --warning=THRESHOLD\n\ | 534 | printf (" %s\n", _("warning threshold pair")); |
533 | warning threshold pair\n\ | 535 | printf (" %s\n", "-c, --critical=THRESHOLD"); |
534 | -c, --critical=THRESHOLD\n\ | 536 | printf (" %s\n", _("critical threshold pair")); |
535 | critical threshold pair\n\ | 537 | printf (" %s\n", "-p, --packets=INTEGER"); |
536 | -p, --packets=INTEGER\n\ | 538 | printf (" %s\n", _("number of ICMP ECHO packets to send")); |
537 | number of ICMP ECHO packets to send (Default: %d)\n\ | 539 | printf (_("(Default: %d)"), DEFAULT_MAX_PACKETS); |
538 | -L, --link\n\ | 540 | printf (" %s\n", "-L, --link"); |
539 | show HTML in the plugin output (obsoleted by urlize)\n"), | 541 | printf (" %s\n", _("show HTML in the plugin output (obsoleted by urlize)")); |
540 | DEFAULT_MAX_PACKETS); | ||
541 | 542 | ||
542 | printf (_(UT_TIMEOUT), DEFAULT_SOCKET_TIMEOUT); | 543 | printf (_(UT_TIMEOUT), DEFAULT_SOCKET_TIMEOUT); |
543 | 544 | ||
544 | printf (_("\ | 545 | printf ("%s\n", _("THRESHOLD is <rta>,<pl>%% where <rta> is the round trip average travel")); |
545 | THRESHOLD is <rta>,<pl>%% where <rta> is the round trip average travel\n\ | 546 | printf ("%s\n", _("time (ms) which triggers a WARNING or CRITICAL state, and <pl> is the")); |
546 | time (ms) which triggers a WARNING or CRITICAL state, and <pl> is the\n\ | 547 | printf ("%s\n", _("percentage of packet loss to trigger an alarm state.")); |
547 | percentage of packet loss to trigger an alarm state.\n\n")); | 548 | |
549 | printf ("\n\n"); | ||
550 | |||
551 | printf ("%s\n", _("This plugin uses the ping command to probe the specified host for packet loss")); | ||
552 | printf ("%s\n", _("(percentage) and round trip average (milliseconds). It can produce HTML output")); | ||
553 | printf ("%s\n", _("linking to a traceroute CGI contributed by Ian Cass. The CGI can be found in")); | ||
554 | printf ("%s\n", _("the contrib area of the downloads section at http://www.nagios.org/")); | ||
548 | 555 | ||
549 | printf (_("\ | 556 | printf ("\n\n"); |
550 | This plugin uses the ping command to probe the specified host for packet loss\n\ | ||
551 | (percentage) and round trip average (milliseconds). It can produce HTML output\n\ | ||
552 | linking to a traceroute CGI contributed by Ian Cass. The CGI can be found in\n\ | ||
553 | the contrib area of the downloads section at http://www.nagios.org\n\n")); | ||
554 | 557 | ||
555 | printf (_(UT_SUPPORT)); | 558 | printf (_(UT_SUPPORT)); |
556 | } | 559 | } |
@@ -558,6 +561,7 @@ the contrib area of the downloads section at http://www.nagios.org\n\n")); | |||
558 | void | 561 | void |
559 | print_usage (void) | 562 | print_usage (void) |
560 | { | 563 | { |
561 | printf ("Usage: %s -H <host_address> -w <wrta>,<wpl>%% -c <crta>,<cpl>%%\n\ | 564 | printf (_("Usage:")); |
562 | [-p packets] [-t timeout] [-L] [-4|-6]\n", progname); | 565 | printf ("%s -H <host_address> -w <wrta>,<wpl>%% -c <crta>,<cpl>%%\n", progname); |
566 | printf (" [-p packets] [-t timeout] [-L] [-4|-6]\n"); | ||
563 | } | 567 | } |