|
@ -162,7 +162,7 @@ main() { |
|
|
echo "$loss" > /var/run/mwan3track/$1/LOSS_${track_ip} |
|
|
echo "$loss" > /var/run/mwan3track/$1/LOSS_${track_ip} |
|
|
|
|
|
|
|
|
if [ $score -gt $up ]; then |
|
|
if [ $score -gt $up ]; then |
|
|
$LOG info "Failed: Latency=$latency ms Loss=$loss% for target \"$track_ip\" on interface $1 ($2)" |
|
|
|
|
|
|
|
|
$LOG info "Check (${track_method}: latency=${latency}ms loss=${loss}%) failed for target \"$track_ip\" on interface $1 ($2)" |
|
|
fi |
|
|
fi |
|
|
elif [ "$loss" -le "$recovery_loss" -a "$latency" -le "$recovery_latency" ]; then |
|
|
elif [ "$loss" -le "$recovery_loss" -a "$latency" -le "$recovery_latency" ]; then |
|
|
let host_up_count++ |
|
|
let host_up_count++ |
|
@ -171,7 +171,7 @@ main() { |
|
|
echo "$loss" > /var/run/mwan3track/$1/LOSS_${track_ip} |
|
|
echo "$loss" > /var/run/mwan3track/$1/LOSS_${track_ip} |
|
|
|
|
|
|
|
|
if [ $score -le $up ]; then |
|
|
if [ $score -le $up ]; then |
|
|
$LOG info "Success: Latency=$latency ms Loss=$loss% for target \"$track_ip\" on interface $1 ($2)" |
|
|
|
|
|
|
|
|
$LOG info "Check (${track_method}: latency=${latency}ms loss=${loss}%) success for target \"$track_ip\" on interface $1 ($2)" |
|
|
fi |
|
|
fi |
|
|
else |
|
|
else |
|
|
echo "skipped" > /var/run/mwan3track/$1/TRACK_${track_ip} |
|
|
echo "skipped" > /var/run/mwan3track/$1/TRACK_${track_ip} |
|
|