Hi
I like and use luci_statistics. I had a data loss after upgrade to latest release. No historical data now.
What I need to do better for next upgrade?
Hi
I like and use luci_statistics. I had a data loss after upgrade to latest release. No historical data now.
What I need to do better for next upgrade?
The rrds reside in RAM, therefore need to be saved and restored.
So also reboot will purge history.
Howto save and restore? Can I export to plaintext files (git)?
The easiest solution would be to use a USB flash drive (assuming your router has a USB port) to add some permanent storage.
OpenWrt Project: Quick Start for Adding a USB drive provides instructions of how to set up a USB drive.
thanks. Done that.
/dev/sda2 7.1G 32.6M 6.7G 0% /mnt/sda2
How to save all state now on /mnt/sda2?
Write a script that
Or you can configure RRDtool output plugin in luci by going to Statistics > Setup then clicking the output plugins tab. You can then just change the rrd storage directory to one on the mounted drive.
thank you guys
I did that, if someone else is interested:
Edit 2022-05-10: Moved from Github Gists to proper Github repository.
Just change BACKUP_DIR to whatever is suitable in your situation. Flash wear wise, I feel comfortable to backup it to internal flash every 6 hours, your opinion might differ.
Nice!
I have added a link to your script on https://openwrt.org/docs/guide-user/luci/luci_app_statistics.