PING_SLOTS_PER_PEER=5 # number of samples per PING_PEER to calculate averages over
PING_INTERVAL=300 # interval in msec to emit ICMP ECHO towards each PING_PEER
THRESHOLD=1.2 # factor relevant in judging current latency compared to avg. - leave it at 1.2
-PING_GW_IPV4=no # do not use - broken
-PING_GW_IPV6=no # do not use - broken
fi
-if [ x"${PING_GW_IPV6:-no}" = xyes ]
-then
- PING_PEERS="$(traceroute -6 -n -m 2001:4860:4860::8888 | awk '{if("1" == $1){print $2}}') ${PING_PEERS}"
-fi
-
-
-if [ x"${PING_GW_IPV4:-no}" = xyes ]
-then
- PING_PEERS="$(traceroute -4 -n -m 1 8.8.8.8 | awk '{if("1" == $1){print $2}}') ${PING_PEERS}"
-fi
-
-
if ! __is_num "${THRESHOLD}"
then
printf 'FATAL: Invalid value for THRESHOLD\n' >&2