opnsense / ports

OPNsense ports on top of FreeBSD
https://opnsense.org/
Other
157 stars 114 forks source link

Add support for vnstati / graphs to os-vnstat/vnstat packages. #103

Closed ladar closed 2 years ago

ladar commented 3 years ago

@fichtner I'm hoping you can add support for generating per interface reports and/or graphs using the vnstat tool. I find it's a great (and easy) way to get historical usage statistics from my firewall. Unfortunately right now, it only produces one report via the web interface, and that report aggregates all of the interfaces. Which isn't very useful, since that double counts data, etc.

A simple drop down on the report pages that allows you to select which interface to show is all it would take. Then pass the inteface name to vnstat like so:

vnstat -h --iface ix0

Where ix0 is the interface.

That's the first, hopefully easy improvement. The other issue would be adding support for generating graphs using the vnstati tool..

For some reason the FreeBSD and HardenedBSD vnstat packages include the vnstati command line tool, but the OPNsense package doesn't. Any idea why? Assume it can be easily added, then all it would take is swapping out the calls to vnstat with similar calls to vnatati and the plugin can produce pretty graphs. See this tutorial for details:

https://www.tecmint.com/install-vnstat-and-vnstati-to-monitor-linux-network-traffic/

And this example/demo on the homepage for vnstat ...

https://humdi.net/vnstat/cgidemo/

Thanks.