monitoring tool for Freifunk networks (backend)
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
retry @ c423a24


A monitoring tool for Freifunk [] networks. It was developed for Freifunk Hamburg [], but should be usable for other Freifunk communities as well. It works by pulling a nodes.json file from the respective freifunk node graph website every minute.

You can see a running instance at

This repository only contains the backend python code, the PHP frontend code will be available in an extra repository shortly.


  • Graph number of clients, wlan links and vpn connections of each node.
  • Graph the overall network/mesh size.
  • Rough calculation of offline statistics for each node.
  • Multiple data source urls for fallback on errors.
  • Only new data is pulled from the Freifunk server and saved.
  • Human readable names of the nodes are saved.
  • Handling of nodes that forever vanished from the network (delete rrd file, ...)
  • Consider batman-adv timeouts when calculating number of clients


Create a monitor.conf file (on the basis of monitor.conf.dist). Adapt the path to your conf file in (better solution to come), use the full path. should be run every minute via cron (the interval is not configurable at the moment) could be run every five minutes via cron. (or any other interval, depending on your needs) Additionaly delay it by e.g. 30 seconds (by sleep 30) so that it does not run in parallel with could be run every hour via cron (or any other interval if you think that is more suitable)

Here are some example crontab entries:

*/1 * * * * <path>/ >> <pathtosomelogdir>/update.log 2>&1
*/5 * * * * sleep 30 && <path>/ >> <pathtosomelogdir>/graph.log 2>&1
3   * * * * <path>/ >> <pathtosomelogdir>/stats.log 2>&1


(probably incomplete at the moment)

rrdtool must be installed, along with the python rrdtool module.

The rrdcached daemon should be used to avoid high I/O when updating the rrd files (by

The python Requests module [] must be installed.