Script to log Internet accessibility

Hello,

I have frequent Internet disconnections from my ISP.
I would like a to have a Script on my OpenWrt, that pings for example 1.1.1.1 and 8.8.8.8 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..
thanks.

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.

3 Likes

The built in shell scripts can achieve what you want.

1 Like

https://openwrt.org/docs/guide-user/base-system/cron

1 Like