Friendly traffic monitor per IP, plus historical?

:smiley:

  • Real time graph of traffic per client.
  • Historical graph per client (last 24 hours).
  • Historical data daily (tabular).
  • Historical monthly data (tabular).

The following images are from AdvancedTomato (which is a modern interface for Tomato by Shibby. It works well actually, but the fact that it's for a small number of routers, plus that it's not regularly updated is a downside.

I understand that OpenWrt is mostly for advanced users, but even advanced users could enjoy some nice customizable graphics, plus it could make it easier for novices.

I take the opportunity to suggest that features such as USB support (including NTFS) and miniDLNA to be included out of the box, as it's popular to use the router as DLNA server.

image
image
image
image
image

Have you looked at YAmon?

2 Likes

@slh Thanks

Yes, I am aware of bwmon and the likes, but I haven't found a package with modern interactive graphics, or simple overview of both real time and historical usage.

That one looks promising. I recall visiting it earlier before installing OpenWrt. The shortcoming is that it mandates using a USB storage for that. (some other solutions allow temporary storage on RAM or even NVRAM).

I am not sure if it gives data of real time usage or not, but I will give it a try.

Thanks

Gargoyle does this, but you would no longer be in a “vanilla” Openwrt environment.

Tomato does it, and AdvancedTomato interface is modern and smooth. But it would be fantastic to have it in OpenWrt.

You found something? I'm also looking for a similar package.

The closest thing I found was YaMon https://usage-monitoring.com/index.php. It's feature rich but not very user friendly or elegant looking, and it requires a USB device.

I have the good intention to try to develop something, but I'm not prepared yet.

1 Like

try this guys

it is like dream come true when it works and setup is also easy + it does not require any usb drive

2 Likes

It can only show aggregate historical data. It can't tell you which device is using most of the bandwidth, for example.

2 Likes

Would it be technically possible to modify the view in Luci at /cgi-bin/luci/admin/status/realtime/bandwidth to be able to list the amount of traffic used by client?

1 Like

It doesn't require a flash drive. You can place it on a server and SMB share its folder, then mount it on OpenWRT. Its dev doesn't officially support this, but I've been using it so for 2 years with no issue.

1 Like

I'd like to throw my suggestion into the ring: https://github.com/oofnikj/iptmon

iptmon uses kernel netfilter rules to track data usage per IP address, making that data available directly through the web UI with luci-app-statistics. It supports both IPv4 and IPv6, dynamic updates through dnsmasq hooks, and is cross-platform (written in shell script) and resource efficient (no resident process, install size ~4kB). I have been maintaining it for a little over a year and it fits my needs nicely.

13 Likes

I have been trying to use several traffic monitoring packages: vnStat (doesn't provide data per device), nlbwmon (after a while it stops monitoring without any error or info in the system log), and now I am testing iptmon. Actually, it requires way more than just 4kb as it requires a lot of libraries, and the installation process requires a little bit more work than just opkging the ipk file. I will test it for a while to see if it can track the information I want. I would like to see the way it can handle a router with limited storage without USB.

Thanks for sharing it!

1 Like

I'm also looking for this in OpenWRT. you found anything?

1 Like

This is the best I could create using grafana for the frontend.

It uses the Prometheus and collectd software on the router to collect basic metrics.

I installed IPTMON on the router to collect per IP traffic.

I set up Prometheus, collectd-exporter and grafana on my home server.

I created a GIT more for my sake so I can remember what I did. But it's also available to the public. You'll have to modify some of the configs such as your home server IP address.

1 Like

Problem: IPTMON is not compatible with 22.x firmware…

that looks amazing @Beniamin

hopefully iptmon will get a patch for 22.x firmware. can't wait to make that dashboard

Sure, but why do you need 22 over 21? :wink: I know it doesn't. Alot doesn't work work 22 (banip for example). I would hold off on 22 for another year or so until stuff is converted over.

I hope so too!