Calculate monthly data usage? Persistent for device reboots?

Started by Millenium7, March 20, 2018, 05:37:18 AM

Previous topic - Next topic

Millenium7

Is there a way to have a DCI show daily/weekly/monthly usage? And also not lose track of usage if the device reboots and interface counters get reset to 0

Ideally i'd like separate graphs that can show each usage period
I think a way to do this would be to have 3 separate DCI's, each of them copy data from the main interface DCI, then average values for an hour and then store it. But when the month starts at 500gb and ended up at 700gb it would show 700gb of usage, not 200gb. And also if the router rebooted a few times the counters are going to keep resetting to 0 so the calculations would be very wrong

Is there a built in command to assist with this?
A plugin?
Or does anyone have math formula's to make it work?