aboutsummaryrefslogtreecommitdiff
path: root/plugins-root/check_icmp.c
diff options
context:
space:
mode:
authorGravatar Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> 2008-04-29 09:01:31 +0000
committerGravatar Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> 2008-04-29 09:01:31 +0000
commit767bf9a0f207f64fb688c072ba33cf9276d0cb42 (patch)
tree1f1745bc7b43345ab2059cd0d274dd108e8c463c /plugins-root/check_icmp.c
parented62784a0b68959fd13fe5bc53a5aef4f17fbffa (diff)
downloadmonitoring-plugins-767bf9a0f207f64fb688c072ba33cf9276d0cb42.tar.gz
--help output cleanup (plus removal of spaces on blank lines)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1985 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins-root/check_icmp.c')
-rw-r--r--plugins-root/check_icmp.c34
1 files changed, 18 insertions, 16 deletions
diff --git a/plugins-root/check_icmp.c b/plugins-root/check_icmp.c
index 8e7f6d0b..a059f266 100644
--- a/plugins-root/check_icmp.c
+++ b/plugins-root/check_icmp.c
@@ -378,7 +378,7 @@ main(int argc, char **argv)
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
-
+
/* print a helpful error message if geteuid != 0 */
np_warn_if_not_root();
@@ -646,7 +646,7 @@ run_checks()
table[t]->name);
continue;
}
-
+
/* we're still in the game, so send next packet */
(void)send_icmp_ping(icmp_sock, table[t]);
result = wait_for_reply(icmp_sock, target_interval);
@@ -1253,16 +1253,16 @@ print_help(void)
{
/*print_revision (progname, revision);*/ /* FIXME: Why? */
-
+
printf ("Copyright (c) 2005 Andreas Ericsson <ae@op5.se>\n");
printf (COPYRIGHT, copyright, email);
-
+
printf ("\n\n");
-
+
print_usage ();
-
+
printf (_(UT_HELP_VRSN));
-
+
printf (" %s\n", "-H");
printf (" %s\n", _("specify a target"));
printf (" %s\n", "-w");
@@ -1297,23 +1297,25 @@ print_help(void)
printf (" %s\n", _("verbose"));
printf ("\n");
- printf ("%s\n\n", _("The -H switch is optional. Naming a host (or several) to check is not."));
- printf ("%s\n", _("Threshold format for -w and -c is 200.25,60% for 200.25 msec RTA and 60%"));
- printf ("%s\n", _("packet loss. The default values should work well for most users."));
- printf ("%s\n", _("You can specify different RTA factors using the standardized abbreviations"));
- printf ("%s\n\n", _("us (microseconds), ms (milliseconds, default) or just plain s for seconds."));
+ printf ("%s\n", _("Notes:"));
+ printf (" %s\n", _("The -H switch is optional. Naming a host (or several) to check is not."));
+ printf ("\n");
+ printf (" %s\n", _("Threshold format for -w and -c is 200.25,60% for 200.25 msec RTA and 60%"));
+ printf (" %s\n", _("packet loss. The default values should work well for most users."));
+ printf (" %s\n", _("You can specify different RTA factors using the standardized abbreviations"));
+ printf (" %s\n", _("us (microseconds), ms (milliseconds, default) or just plain s for seconds."));
/* -d not yet implemented */
/* printf ("%s\n", _("Threshold format for -d is warn,crit. 12,14 means WARNING if >= 12 hops"));
printf ("%s\n", _("are spent and CRITICAL if >= 14 hops are spent."));
printf ("%s\n\n", _("NOTE: Some systems decrease TTL when forming ICMP_ECHOREPLY, others do not."));*/
- printf ("%s\n\n", _("The -v switch can be specified several times for increased verbosity."));
+ printf ("\n");
+ printf (" %s\n", _("The -v switch can be specified several times for increased verbosity."));
/* printf ("%s\n", _("Long options are currently unsupported."));
printf ("%s\n", _("Options marked with * require an argument"));
*/
+
printf (_(UT_SUPPORT));
-
- printf (_(UT_NOWARRANTY));
}
@@ -1322,5 +1324,5 @@ void
print_usage (void)
{
printf (_("Usage:"));
- printf(" %s [options] [-H] host1 host2 hostn\n", progname);
+ printf(" %s [options] [-H] host1 host2 hostN\n", progname);
}