Script that generated data, originally was so I could tell the cable tech when the connection dropped and then I used the data over a few days to make the above graph.
watch.sh
#!/bin/bash
IP=8.8.8.8
while true; do
DATE=`date +"%D %r"`
if ping -c 1 -W 2 ${IP} 2>&1 >/dev/null; then
echo "${DATE} - Ping successful"
else
echo "${DATE} - Ping unsuccessful"
fi
sleep 60
done