This is a simple background monitor which creates statistics about how the network is behaving. It can run as a background job on a raspberry pi or an openWRT router.
Features:
- Internet availibility check using ping
- Internet availibility check using wget
- Checking if certain MAC-adresses can be reached
- traceroute to see where the traffic stops
Clone this repository.
Then, make it run at startup, see here for example. I use crontab:
crontab -e
Then, I added this line:
@reboot /home/pi/network-status-monitor/bin/background
Commands used:
wget
curl
python3
for the server, not required to just record statisticsip
traceroute
bash
ping
git
for updating/cloningiwlist
as/sbin/iwlist
for listing WIFI networks
Also used bu usually there:
dirname
, cd
, mkdir
, seq
You can use the Python3 CGI server to serve the statistics.
We use chart.js.