Realtime stats / network use per host

Hi

I cannot find any way to get realtime statistics (bandwidth uses) per host/mac from openwrt router with a nice presentation (grafana).
I can find:

  • old looking stats from luci packages, that show something statics with graphics from 90s
  • some prometheus/collectd/softflowd export probes and grafana display but without traffic per host (just general traffic)

I used iptmon in the past but not only it was sort of hack, it is no more compatible with 22.x firmware…

I cannot believe that all those probes (snmp/collectd/softflowd/prometheus/…) cannot export detailed statistics per host (?) neither that no one is interested by getting such statistics from its network (e.g. to see who is f*cking eating all the bandwidth)…

Any hint appreciated :slight_smile:

Netflow (softflowd) does provide data for each host (IP).

What issue are you having with its setup?

2 Likes

Can you point me to a blog post/tutorial/video/whatever with such setup?

Netlink Bandwidth Monitor (opkg: nlbwmon) maybe?

1 Like

That’s what I call non realtime 90s graphics :wink:
Can be useful but definitely not what I am looking for :wink:

Another option:

2 Likes

I am more looking of something like this:

Which means using a probe (softflowd?) and export on a server running a database + grafana... but I did not find any explained setup like this so far

I also use softflowd that I export Netflow data to PRTG on an old desktop win box. I use it because I'm familiar with it from a previous job, but there are other users here using grafana for similar purposes.

1 Like

I am interested in something like this as well. I would like to record every connection/flow in my small network with modest traffic rates used only by me and be able to track and report every connection short term with increasing aggregation as time passes. Using a flow exporter (softflowd) on my hexacore arm OpenWrt 22.03 router, a flow collector and a flow analyzer on a server should work.

Perhaps you are looking for an OpenWrt how-to guide to set up all three components. Since flow records are fairly standardized and the exporter and collectors have focused functionality, they should be fairly straightforward to setup in a generic form. I hope the analyzers we might choose have clear instructions to work with the collector and may drive product selection for the collector. A quick look at internet search results shows some blogs etc. which may ease the overall process.

I found softflowd available via opkg list |grep softflowd
Here is a forum thread that may help, especially with the init script:
https://forum.openwrt.org/t/fixed-softflowd-init-script-testing-needed/90648
Links in posts 2 and 3 may prove more useful.

It looks like softflowd was developed by Damien Miller at mindrot.org and it moved to Google Code:
https://code.google.com/archive/p/softflowd/
and is currently maintained here:
https://github.com/irino/softflowd

I hope there is something useful in all this for you.

yeah softflowd seems definitively a good option...but then which tool to use with it?
I have tried ntopng (thanks to netflow2ng) but it is IMHO a pure IT admin tool... I don't need such level of detail and, on the other side, I don't have (easy) access to basic stuff like traffic per devices on my network...
So still looking around and open to comments!

If you follow throught to the split thread you can find Help with Softflowd and exporting netflow data to PRTG - #24 by RuralRoots

2 Likes

Gave a try to checkmk but didn't get any information per host only global stuff...
To be continued