diff options
Diffstat (limited to 'plugins-root/check_icmp.c')
-rw-r--r-- | plugins-root/check_icmp.c | 58 |
1 files changed, 31 insertions, 27 deletions
diff --git a/plugins-root/check_icmp.c b/plugins-root/check_icmp.c index ca12b466..8feeb853 100644 --- a/plugins-root/check_icmp.c +++ b/plugins-root/check_icmp.c | |||
@@ -339,8 +339,9 @@ check_icmp_config_wrapper process_arguments(int argc, char **argv) { | |||
339 | {"number-of-packets", required_argument, 0, 'p'}, | 339 | {"number-of-packets", required_argument, 0, 'p'}, |
340 | {"packet-interval", required_argument, 0, 'i'}, | 340 | {"packet-interval", required_argument, 0, 'i'}, |
341 | {"target-interval", required_argument, 0, 'I'}, | 341 | {"target-interval", required_argument, 0, 'I'}, |
342 | {"minimal-host-alive", required_argument, 0, 'm'}, | ||
342 | {"outgoing-ttl", required_argument, 0, 'l'}, | 343 | {"outgoing-ttl", required_argument, 0, 'l'}, |
343 | {"packet_payload_size", required_argument, 0, 'b'}, | 344 | {"size", required_argument, 0, 'b'}, |
344 | {"output-format", required_argument, 0, output_format_index}, | 345 | {"output-format", required_argument, 0, output_format_index}, |
345 | {}, | 346 | {}, |
346 | }; | 347 | }; |
@@ -2062,56 +2063,59 @@ void print_help(void) { | |||
2062 | printf(UT_HELP_VRSN); | 2063 | printf(UT_HELP_VRSN); |
2063 | printf(UT_EXTRA_OPTS); | 2064 | printf(UT_EXTRA_OPTS); |
2064 | 2065 | ||
2065 | printf(" %s\n", "-H"); | 2066 | printf(" -H, --Host=HOST\n"); |
2066 | printf(" %s\n", | 2067 | printf(" %s\n", |
2067 | _("specify a target, might be one of: resolveable name, IPv6 address, IPv4 address " | 2068 | _("specify a target, might be one of: resolveable name | IPv6 address | IPv4 address\n" |
2068 | "(necessary, can be given multiple times)")); | 2069 | " (required, can be given multiple times)")); |
2069 | printf(" %s\n", "[-4|-6]"); | 2070 | printf(" %s\n", "[-4|-6], [--ipv4-only|--ipv6-only]"); |
2070 | printf(" %s\n", _("Use IPv4 or IPv6 only to communicate with the targets")); | 2071 | printf(" %s\n", _("Use IPv4 or IPv6 only to communicate with the targets")); |
2071 | printf(" %s\n", "-w"); | 2072 | printf(" %s\n", "-w, --warning=WARN_VALUE"); |
2072 | printf(" %s", _("warning threshold (default ")); | 2073 | printf(" %s", _("warning threshold (default ")); |
2073 | printf("%0.3fms,%u%%)\n", (float)DEFAULT_WARN_RTA / 1000, DEFAULT_WARN_PL); | 2074 | printf("%0.3fms,%u%%)\n", (float)DEFAULT_WARN_RTA / 1000, DEFAULT_WARN_PL); |
2074 | printf(" %s\n", "-c"); | 2075 | printf(" %s\n", "-c, --critical=CRIT_VALUE"); |
2075 | printf(" %s", _("critical threshold (default ")); | 2076 | printf(" %s", _("critical threshold (default ")); |
2076 | printf("%0.3fms,%u%%)\n", (float)DEFAULT_CRIT_RTA / 1000, DEFAULT_CRIT_PL); | 2077 | printf("%0.3fms,%u%%)\n", (float)DEFAULT_CRIT_RTA / 1000, DEFAULT_CRIT_PL); |
2077 | 2078 | ||
2078 | printf(" %s\n", "-R"); | 2079 | printf(" %s\n", "-R, --rta-mode-thresholds=RTA_THRESHOLDS"); |
2079 | printf(" %s\n", | 2080 | printf(" %s\n", |
2080 | _("RTA (round trip average) mode warning,critical, ex. 100ms,200ms unit in ms")); | 2081 | _("RTA (round trip average) mode warning,critical, ex. 100ms,200ms unit in ms")); |
2081 | printf(" %s\n", "-P"); | 2082 | printf(" %s\n", "-P, --packet-loss-mode-thresholds=PACKET_LOSS_THRESHOLD"); |
2082 | printf(" %s\n", _("packet loss mode, ex. 40%,50% , unit in %")); | 2083 | printf(" %s\n", _("packet loss mode, ex. 40%,50% , unit in %")); |
2083 | printf(" %s\n", "-J"); | 2084 | printf(" %s\n", "-J, --jitter-mode-thresholds=JITTER_MODE_THRESHOLD"); |
2084 | printf(" %s\n", _("jitter mode warning,critical, ex. 40.000ms,50.000ms , unit in ms ")); | 2085 | printf(" %s\n", _("jitter mode warning,critical, ex. 40.000ms,50.000ms , unit in ms ")); |
2085 | printf(" %s\n", "-M"); | 2086 | printf(" %s\n", "-M, --mos-mode-thresholds=MOS_MODE_THRESHOLD"); |
2086 | printf(" %s\n", _("MOS mode, between 0 and 4.4 warning,critical, ex. 3.5,3.0")); | 2087 | printf(" %s\n", _("MOS mode, between 0 and 4.4 warning,critical, ex. 3.5,3.0")); |
2087 | printf(" %s\n", "-S"); | 2088 | printf(" %s\n", "-S, --score-mode-thresholds=SCORE_MODE_THRESHOLD"); |
2088 | printf(" %s\n", _("score mode, max value 100 warning,critical, ex. 80,70 ")); | 2089 | printf(" %s\n", _("score mode, max value 100 warning,critical, ex. 80,70 ")); |
2089 | printf(" %s\n", "-O"); | 2090 | printf(" %s\n", "-O, --out-of-order-packets"); |
2090 | printf(" %s\n", | 2091 | printf( |
2091 | _("detect out of order ICMP packts, if such packets are found, the result is CRITICAL")); | 2092 | " %s\n", |
2092 | printf(" %s\n", "-n"); | 2093 | _("detect out of order ICMP packets, if such packets are found, the result is CRITICAL")); |
2093 | printf(" %s\n", "-p"); | 2094 | printf(" %s\n", "[-n|-p], --number-of-packets=NUMBER_OF_PACKETS"); |
2094 | printf(" %s", _("number of packets to send (default ")); | 2095 | printf(" %s", _("number of packets to send (default ")); |
2095 | printf("%u)\n", DEFAULT_NUMBER_OF_PACKETS); | 2096 | printf("%u)\n", DEFAULT_NUMBER_OF_PACKETS); |
2097 | |||
2096 | printf(" %s\n", "-i"); | 2098 | printf(" %s\n", "-i"); |
2097 | printf(" %s", _("[DEPRECATED] packet interval (default ")); | 2099 | printf(" %s", _("[DEPRECATED] packet interval (default ")); |
2098 | printf("%0.3fms)\n", (float)DEFAULT_PKT_INTERVAL / 1000); | 2100 | printf("%0.3fms)\n", (float)DEFAULT_PKT_INTERVAL / 1000); |
2099 | printf(" %s", _("This option was never actually used and is just mentioned here for " | 2101 | printf(" %s", _("This option was never actually used and is just mentioned here for " |
2100 | "historical purposes")); | 2102 | "historical purposes\n")); |
2101 | printf(" %s\n", "-I"); | 2103 | |
2104 | printf(" %s\n", "-I, --target-interval=TARGET_INTERVAL"); | ||
2102 | printf(" %s%0.3fms)\n The time interval to wait in between one target and the next", | 2105 | printf(" %s%0.3fms)\n The time interval to wait in between one target and the next", |
2103 | _("max target interval (default "), (float)DEFAULT_TARGET_INTERVAL / 1000); | 2106 | _("max target interval (default "), (float)DEFAULT_TARGET_INTERVAL / 1000); |
2104 | printf(" %s\n", "-m"); | 2107 | printf(" %s\n", "-m, --minimal-host-alive=MIN_ALIVE"); |
2105 | printf(" %s", _("number of alive hosts required for success")); | 2108 | printf(" %s", _("number of alive hosts required for success. If less than MIN_ALIVE hosts " |
2109 | "are OK, but MIN_ALIVE hosts are WARNING or OK, WARNING, else CRITICAL")); | ||
2106 | printf("\n"); | 2110 | printf("\n"); |
2107 | printf(" %s\n", "-l"); | 2111 | printf(" %s\n", "-l, --outgoing-ttl=OUTGOING_TTL"); |
2108 | printf(" %s", _("TTL on outgoing packets (default ")); | 2112 | printf(" %s", _("TTL on outgoing packets (default ")); |
2109 | printf("%u)\n", DEFAULT_TTL); | 2113 | printf("%u)\n", DEFAULT_TTL); |
2110 | printf(" %s\n", "-b"); | 2114 | printf(" %s\n", "-b, --size=SIZE"); |
2111 | printf(" %s\n", _("Number of icmp data bytes to send")); | 2115 | printf(" %s\n", _("Number of icmp ping data bytes to send")); |
2112 | printf(" %s %lu + %d)\n", _("Packet size will be data bytes + icmp header (default"), | 2116 | printf(" %s %lu + %d)\n", _("Packet size will be SIZE + icmp header (default"), |
2113 | DEFAULT_PING_DATA_SIZE, ICMP_MINLEN); | 2117 | DEFAULT_PING_DATA_SIZE, ICMP_MINLEN); |
2114 | printf(" %s\n", "-v"); | 2118 | printf(" %s\n", "-v, --verbose"); |
2115 | printf(" %s\n", _("Verbosity, can be given multiple times (for debugging)")); | 2119 | printf(" %s\n", _("Verbosity, can be given multiple times (for debugging)")); |
2116 | 2120 | ||
2117 | printf(UT_OUTPUT_FORMAT); | 2121 | printf(UT_OUTPUT_FORMAT); |