OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 18.7 Legacy Series »
  • Monthly Traffic Totals
« previous next »
  • Print
Pages: [1] 2

Author Topic: Monthly Traffic Totals  (Read 8441 times)

guest15389

  • Guest
Monthly Traffic Totals
« on: August 23, 2018, 07:38:36 pm »
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.
Logged

Drinyth

  • Newbie
  • *
  • Posts: 19
  • Karma: 0
    • View Profile
Re: Monthly Traffic Totals
« Reply #1 on: September 20, 2018, 03:30:21 pm »
+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:

Quote
On 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!
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13679
  • Karma: 1176
    • View Profile
Re: Monthly Traffic Totals
« Reply #2 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


Cheers,
Franco
Logged

marjohn56

  • Hero Member
  • *****
  • Posts: 1676
  • Karma: 168
    • View Profile
Re: Monthly Traffic Totals
« Reply #3 on: September 20, 2018, 04:40:11 pm »
And it works.  :)
Logged
OPNsense 21.7 - Qotom Q355G4 - ISP - Community Fibre 1Gbps.

Team Rebellion Member - If we've helped you remember to applaud

Drinyth

  • Newbie
  • *
  • Posts: 19
  • Karma: 0
    • View Profile
Re: Monthly Traffic Totals
« Reply #4 on: September 20, 2018, 05:09:39 pm »
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!
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 6296
  • Karma: 433
    • View Profile
Re: Monthly Traffic Totals
« Reply #5 on: September 20, 2018, 05:14:41 pm »
My main motivation when building plugins :)
Logged
Twitter: mimu_muc
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

marjohn56

  • Hero Member
  • *****
  • Posts: 1676
  • Karma: 168
    • View Profile
Re: Monthly Traffic Totals
« Reply #6 on: September 20, 2018, 05:43:01 pm »
Time for a vnstat widget or is that in the works already?
Logged
OPNsense 21.7 - Qotom Q355G4 - ISP - Community Fibre 1Gbps.

Team Rebellion Member - If we've helped you remember to applaud

mimugmail

  • Hero Member
  • *****
  • Posts: 6296
  • Karma: 433
    • View Profile
Re: Monthly Traffic Totals
« Reply #7 on: September 20, 2018, 06:08:08 pm »
I'm not the widget guy, feel free to do mate :)
Logged
Twitter: mimu_muc
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

Ricardo

  • Full Member
  • ***
  • Posts: 225
  • Karma: 11
    • View Profile
Re: Monthly Traffic Totals
« Reply #8 on: November 26, 2018, 06:33:54 pm »
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.
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 6296
  • Karma: 433
    • View Profile
Re: Monthly Traffic Totals
« Reply #9 on: November 26, 2018, 07:13:02 pm »
Plugin ist already there?
Logged
Twitter: mimu_muc
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

Ricardo

  • Full Member
  • ***
  • Posts: 225
  • Karma: 11
    • View Profile
Re: Monthly Traffic Totals
« Reply #10 on: November 27, 2018, 12:03:42 pm »
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.
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 6296
  • Karma: 433
    • View Profile
Re: Monthly Traffic Totals
« Reply #11 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 ...
Logged
Twitter: mimu_muc
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

Ricardo

  • Full Member
  • ***
  • Posts: 225
  • Karma: 11
    • View Profile
Re: Monthly Traffic Totals
« Reply #12 on: November 27, 2018, 01:31:52 pm »
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.
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 6296
  • Karma: 433
    • View Profile
Re: Monthly Traffic Totals
« Reply #13 on: November 27, 2018, 03:02:25 pm »
I never did widgets .. so no idea how this works :/
Logged
Twitter: mimu_muc
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

Ricardo

  • Full Member
  • ***
  • Posts: 225
  • Karma: 11
    • View Profile
Re: Monthly Traffic Totals
« Reply #14 on: November 27, 2018, 04:16:04 pm »
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.


Logged

  • Print
Pages: [1] 2
« previous next »
  • OPNsense Forum »
  • Archive »
  • 18.7 Legacy Series »
  • Monthly Traffic Totals
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2