diff options
Diffstat (limited to 'plugins-root/check_icmp.c')
-rw-r--r-- | plugins-root/check_icmp.c | 34 |
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) | |||
378 | setlocale (LC_ALL, ""); | 378 | setlocale (LC_ALL, ""); |
379 | bindtextdomain (PACKAGE, LOCALEDIR); | 379 | bindtextdomain (PACKAGE, LOCALEDIR); |
380 | textdomain (PACKAGE); | 380 | textdomain (PACKAGE); |
381 | 381 | ||
382 | /* print a helpful error message if geteuid != 0 */ | 382 | /* print a helpful error message if geteuid != 0 */ |
383 | np_warn_if_not_root(); | 383 | np_warn_if_not_root(); |
384 | 384 | ||
@@ -646,7 +646,7 @@ run_checks() | |||
646 | table[t]->name); | 646 | table[t]->name); |
647 | continue; | 647 | continue; |
648 | } | 648 | } |
649 | 649 | ||
650 | /* we're still in the game, so send next packet */ | 650 | /* we're still in the game, so send next packet */ |
651 | (void)send_icmp_ping(icmp_sock, table[t]); | 651 | (void)send_icmp_ping(icmp_sock, table[t]); |
652 | result = wait_for_reply(icmp_sock, target_interval); | 652 | result = wait_for_reply(icmp_sock, target_interval); |
@@ -1253,16 +1253,16 @@ print_help(void) | |||
1253 | { | 1253 | { |
1254 | 1254 | ||
1255 | /*print_revision (progname, revision);*/ /* FIXME: Why? */ | 1255 | /*print_revision (progname, revision);*/ /* FIXME: Why? */ |
1256 | 1256 | ||
1257 | printf ("Copyright (c) 2005 Andreas Ericsson <ae@op5.se>\n"); | 1257 | printf ("Copyright (c) 2005 Andreas Ericsson <ae@op5.se>\n"); |
1258 | printf (COPYRIGHT, copyright, email); | 1258 | printf (COPYRIGHT, copyright, email); |
1259 | 1259 | ||
1260 | printf ("\n\n"); | 1260 | printf ("\n\n"); |
1261 | 1261 | ||
1262 | print_usage (); | 1262 | print_usage (); |
1263 | 1263 | ||
1264 | printf (_(UT_HELP_VRSN)); | 1264 | printf (_(UT_HELP_VRSN)); |
1265 | 1265 | ||
1266 | printf (" %s\n", "-H"); | 1266 | printf (" %s\n", "-H"); |
1267 | printf (" %s\n", _("specify a target")); | 1267 | printf (" %s\n", _("specify a target")); |
1268 | printf (" %s\n", "-w"); | 1268 | printf (" %s\n", "-w"); |
@@ -1297,23 +1297,25 @@ print_help(void) | |||
1297 | printf (" %s\n", _("verbose")); | 1297 | printf (" %s\n", _("verbose")); |
1298 | 1298 | ||
1299 | printf ("\n"); | 1299 | printf ("\n"); |
1300 | printf ("%s\n\n", _("The -H switch is optional. Naming a host (or several) to check is not.")); | 1300 | printf ("%s\n", _("Notes:")); |
1301 | printf ("%s\n", _("Threshold format for -w and -c is 200.25,60% for 200.25 msec RTA and 60%")); | 1301 | printf (" %s\n", _("The -H switch is optional. Naming a host (or several) to check is not.")); |
1302 | printf ("%s\n", _("packet loss. The default values should work well for most users.")); | 1302 | printf ("\n"); |
1303 | printf ("%s\n", _("You can specify different RTA factors using the standardized abbreviations")); | 1303 | printf (" %s\n", _("Threshold format for -w and -c is 200.25,60% for 200.25 msec RTA and 60%")); |
1304 | printf ("%s\n\n", _("us (microseconds), ms (milliseconds, default) or just plain s for seconds.")); | 1304 | printf (" %s\n", _("packet loss. The default values should work well for most users.")); |
1305 | printf (" %s\n", _("You can specify different RTA factors using the standardized abbreviations")); | ||
1306 | printf (" %s\n", _("us (microseconds), ms (milliseconds, default) or just plain s for seconds.")); | ||
1305 | /* -d not yet implemented */ | 1307 | /* -d not yet implemented */ |
1306 | /* printf ("%s\n", _("Threshold format for -d is warn,crit. 12,14 means WARNING if >= 12 hops")); | 1308 | /* printf ("%s\n", _("Threshold format for -d is warn,crit. 12,14 means WARNING if >= 12 hops")); |
1307 | printf ("%s\n", _("are spent and CRITICAL if >= 14 hops are spent.")); | 1309 | printf ("%s\n", _("are spent and CRITICAL if >= 14 hops are spent.")); |
1308 | printf ("%s\n\n", _("NOTE: Some systems decrease TTL when forming ICMP_ECHOREPLY, others do not."));*/ | 1310 | printf ("%s\n\n", _("NOTE: Some systems decrease TTL when forming ICMP_ECHOREPLY, others do not."));*/ |
1309 | printf ("%s\n\n", _("The -v switch can be specified several times for increased verbosity.")); | 1311 | printf ("\n"); |
1312 | printf (" %s\n", _("The -v switch can be specified several times for increased verbosity.")); | ||
1310 | 1313 | ||
1311 | /* printf ("%s\n", _("Long options are currently unsupported.")); | 1314 | /* printf ("%s\n", _("Long options are currently unsupported.")); |
1312 | printf ("%s\n", _("Options marked with * require an argument")); | 1315 | printf ("%s\n", _("Options marked with * require an argument")); |
1313 | */ | 1316 | */ |
1317 | |||
1314 | printf (_(UT_SUPPORT)); | 1318 | printf (_(UT_SUPPORT)); |
1315 | |||
1316 | printf (_(UT_NOWARRANTY)); | ||
1317 | } | 1319 | } |
1318 | 1320 | ||
1319 | 1321 | ||
@@ -1322,5 +1324,5 @@ void | |||
1322 | print_usage (void) | 1324 | print_usage (void) |
1323 | { | 1325 | { |
1324 | printf (_("Usage:")); | 1326 | printf (_("Usage:")); |
1325 | printf(" %s [options] [-H] host1 host2 hostn\n", progname); | 1327 | printf(" %s [options] [-H] host1 host2 hostN\n", progname); |
1326 | } | 1328 | } |