#!/usr/local/bin/bash # This shell takes the avarege ping latency to the secondary DNS server wan_latency=`/sbin/ping -n -c 15 62.61.134.195 | /usr/bin/grep avg | /usr/bin/awk '{print $4}' | /usr/bin/awk -F/ '{print $2}'` /usr/local/bin/curl http://data.hovmon.com/?cid=560dee69a0e7fefb779a31d4ac528b2afca4368b\&val=$wan_latency\&psw=a752bc93-my-secret-password-02e66ee77