Please allow roterOS to save statistic of simple queues into HDD. I always lost this data after reboot. I use this for counting user data and FUP. Is here any possibility to do this?
We've looked into what you describe extensively and decided to build the DBS solution as described in the signature below.
If you insist in building this yourself you would need to gather and store the data off of the router and save in a "round robin database" a.k.a. "rrdtool" somewhere else. The trick is detecting data rates that are impossible and then ignoring those samples, as it would appear when a register rolls over or by having a counter being reset to zero. One great example of this is provided by the open source program called Cacti (
http://www.cacti.net/), where the data is collected through SNMP and saved and graphed using RrdTool.
Once you have the data off the router, then your script would need to retrieve this data, and make adjustments as needed. No simple task.