niccokunzmann / network-status-monitor

monitoring the local network status and internet connection

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Network Status Monitor

Screenshot showing the website with statistics on it.

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

Installation

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

Packages

Commands used:

  • wget
  • curl
  • python3 for the server, not required to just record statistics
  • ip
  • traceroute
  • bash
  • ping
  • git for updating/cloning
  • iwlist as /sbin/iwlist for listing WIFI networks

Also used bu usually there: dirname, cd, mkdir, seq

Server

You can use the Python3 CGI server to serve the statistics.

Implementation

We use chart.js.

About

monitoring the local network status and internet connection

License:GNU Affero General Public License v3.0


Languages

Language:Shell 38.7%Language:JavaScript 21.7%Language:Python 20.4%Language:HTML 12.8%Language:CSS 6.5%