OPNsense Forum

Archive => 19.7 Legacy Series => Topic started by: the-mk on January 10, 2020, 06:29:50 am

Title: changes of vnstat after update to 19.7.9?
Post by: the-mk on January 10, 2020, 06:29:50 am
Hi there!

have there some changes to vnstat recently?
after update to 19.7.9 I notice that the weekly report is gone and the hourly report looks a bit different...

having a look at the log of the update, it seems that it was a bit upgraded:
"pkg-static: vnstat upgraded: 1.15 -> 2.4"

after looking at the homepage of vnstat - https://humdi.net/vnstat/ I guess the switch for generating the hourly graph has changed from -h to -hg and the weekly list has completely disappeared?!?

it would be great to adopt the area in the configuration of vnstat in OPNsense to reflect that changes...

Thanks!
Title: Re: changes of vnstat after update to 19.7.9?
Post by: mimugmail on January 10, 2020, 09:07:24 am
I have to adapt the plugin or revert to v1. Weekly was removed with v2 of vnstat
Title: Re: changes of vnstat after update to 19.7.9?
Post by: franco on January 10, 2020, 09:18:24 am
Oh right, this was still a TODO item. For now this should do the trick:

# opnsense-revert -r 19.7.8 vnstat


Cheers,
Franco
Title: Re: changes of vnstat after update to 19.7.9?
Post by: the-mk on January 10, 2020, 02:59:40 pm
I am fine with the new status... weekly stats are not important enough to revert back to old version.
adopting the plugin and the corresponding API would be great (maybe replacing the weekly option with the hourly graph?).
but it does not hurry...
thanks!
Title: Re: changes of vnstat after update to 19.7.9?
Post by: mimugmail on January 10, 2020, 03:24:43 pm
API is documented here:
https://github.com/opnsense/docs/blob/master/source/development/api/plugins/vnstat.rst

The weekly is already removed and will be released with next version :)