|
@ -121,7 +121,6 @@ main() { |
|
|
if [ $check_quality -eq 0 ]; then |
|
|
if [ $check_quality -eq 0 ]; then |
|
|
ping -I $DEVICE -c $count -W $timeout -s $size -q $track_ip &> /dev/null |
|
|
ping -I $DEVICE -c $count -W $timeout -s $size -q $track_ip &> /dev/null |
|
|
result=$? |
|
|
result=$? |
|
|
$LOG info "ping check result $track_ip on $1 ($2): $result" |
|
|
|
|
|
else |
|
|
else |
|
|
ping_result=`ping -I $DEVICE -c $count -W $timeout -s $size -q $track_ip | tail -2` |
|
|
ping_result=`ping -I $DEVICE -c $count -W $timeout -s $size -q $track_ip | tail -2` |
|
|
loss=`echo "$ping_result" | grep "packet loss" | cut -d "," -f3 | awk '{print $1}' | sed -e 's/%//'` |
|
|
loss=`echo "$ping_result" | grep "packet loss" | cut -d "," -f3 | awk '{print $1}' | sed -e 's/%//'` |
|
|