Monthly Traffic Totals

Started by guest15389, August 23, 2018, 07:38:36 PM

Previous topic - Next topic
The one thing I can't seem to find an easy solution for is something that collects daily/weekly/monthly traffic totals.

I think the only thing I'm missing on stock OPN is the ability to make these fields last day, last week, last month, etc.



I've been toying around with different things such as vnstat, bandwidthd, darkstat, few different netflow products, but nothing really just does a simple sum. I just want to know what my WAN did for last month.

+1

I just migrated over from pfsense yesterday and this is one of the things that I'm feel like I'm still missing from the new installation.

For those of us with monthly bandwidth caps, it's nice having the router keep track of how much data has passed through it in the past days and months so we can keep tabs on things and make sure we don't go over our allotted limit.

On the 18.7.3 release notes, it states:

QuoteOn the plugin side development for the upcoming WireGuard VPN, ntopng and vnStat plugins continues. Check the forum for further updates.

But in searching for vnstat, I haven't found much of anything? I would love to have vnstat be available for opnsense! Thanks!

Development plugins are found in the development version (see your firmware settings). If you want to install on a 18.7.3 production system you can do a manual console install:

# pkg install os-vnstat-devel


Cheers,
Franco

And it works.  :)
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

Quote from: franco on September 20, 2018, 03:41:01 PM
Development plugins are found in the development version (see your firmware settings). If you want to install on a 18.7.3 production system you can do a manual console install:

# pkg install os-vnstat-devel

I saw that package there this morning when I did a "pkg search vnstat", but I wasn't sure about doing a manual console install of a devel package (which wasn't showing up in the plug-ins from the GUI) while running on a production system. I wasn't sure what changing the version from production to development entailed (i.e. would it also potentially try and update to the bleeding edge base OS)? I wasn't ready to jeopardize the stability of everything else on the firewall just to gather that data.

In any case, it's nice to know that it was a safe option. It's successfully installed and gathering stats.

Thank you for the work that you've put into OPNsense! I've been very pleased with the experience thus far!


Time for a vnstat widget or is that in the works already?
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

I'm not the widget guy, feel free to do mate :)

Quote from: marjohn56 on September 20, 2018, 05:43:01 PM
Time for a vnstat widget or is that in the works already?

Add me for that vnstat plugin as well. It would be super handy!

Ps. Is the vnstat data preserved across reboots, if /var and /tmp is on volatile tmpfs? I couldnt find anything related to this on the service tab for vnstat.


Quote from: mimugmail on November 26, 2018, 07:13:02 PM
Plugin ist already there?

Are you asking, or stating? AFAIK there is no vnstat plugin at the moment.
I added myself to the wishlist for a vnstat plugin on the dashboard.


Quote from: mimugmail on November 27, 2018, 01:27:06 PM
Which version?

https://forum.opnsense.org/index.php?topic=9716.msg44352#msg44352

18.7.3 was the release ...

Sorry, I'm using the word plugin and widget interchangibly. So you are totally correct, vnstat PLUGIN is already available. What we are requesting is the vnstat WIDGET, to show the data on the dashboard.
Sorry for the confusion.

I never did widgets .. so no idea how this works :/

So before it gets unanswered in this thread, does anyone know:

Is the vnstat data (=stats) preserved across reboots, if /var and /tmp is on volatile tmpfs? I couldnt find anything related to this on the service tab for vnstat.