Script to log Internet accessibility


I have frequent Internet disconnections from my ISP.
I would like a to have a Script on my OpenWrt, that pings for example and once a Minute and then Logs it to a file, so I have evidence for my ISP that I often have no Internet access.

A Bonus would be, if I can somehow make a graph out of the data..

For graphs, the ping module from LuCI statistics might work for you. It will give you also a percentage of successful ping attemps in hour/day/week etc.


The built in shell scripts can achieve what you want.

1 Like

1 Like