Years ago, I wrote about the various tools available for monitoring bandwidth usage for individual devices in a home network.
Now, I have a definitive solution that will help with the questions: wrtbwmon. This is based on several variants that are floating around the internet, each a fork of another.
Here is an excerpt from the README file:
OpenWRT Bandwidth Monitor (wrtbwmon) is a lightweight, efficient, yet feature rich bandwidth monitor for routers running OpenWRT.
Have you ever asked yourself the following questions:
- "What is eating up bandwidth in my home/office?",
- "Who uses the most bandwidth?",
- "Who is downloading stuff all the time",
- "Are malware infected computers on my network eating up bandwidth?"
If you asked yourself these questions, but never had the data to formulate an answer, then this script is for you.
The OpenWRT Bandwidth Monitor provides the following:
- Logs the number of kilobytes that each device uses per hour, day and month for upload and download
- Stores the above data for at least a year.
- Displays a graph of comparative device usage per hour, day, and month.
- Uses very little system resources (CPU and storage).
Your router must be running a recent version of OpenWRT. This version of
wrtbwmon was successfully tested with bleeding edge r39729 built in February
2014, and with Barrier Breaker 14.07 stable release. It was not tested with
This version assumes that you have a permanent storage device to store the data on your router. The best case is that your router has a USB port, and you install the packages necessary for USB storage, and configure the router to automatically mount the USB disk on boot.
To configure USB storage for OpenWRT follow the instruction here: http://goo.gl/j4DU3B
If your router does not have a USB port, and you have an external server, you may be able to store the script and the data on a remote file system using NFS, SAMBA or SSHFS. There is more overhead for this approach vs. using a USB storage device, specially with NFS.
You can read about how to configure network file system clients on OpenWRT here: http://wiki.openwrt.org/doc/howto/client.overview
The version I use for wrtbwmon is attached below this article, as a gzipped tar archive. Please read the included README.txt file and follow the instructions to get it installed.