Author
Message
missblack DD-WRT Novice Joined: 03 May 2017 Posts: 10
Posted: Fri Apr 02, 2021 14:10 Post subject: Bandwidth Monitor monthly, daily usage lost when power off
When I check the router Bandwidth Monitor monthly usage, Daily usage lost power off.
So, should I make the router has an hourly restart or any idea how to keep the daily usage or auto-save it in case the power switched off?
Back to top
Sponsor
kernel-panic69 DD-WRT Guru Joined: 08 May 2018 Posts: 14221 Location: Texas, USA
Back to top
blkt DD-WRT Guru Joined: 20 Jan 2019 Posts: 5700
Back to top
missblack DD-WRT Novice Joined: 03 May 2017 Posts: 10
Posted: Fri Apr 02, 2021 19:17 Post subject:
I do not want to monitor each device, Only the total monthly traffic that I am looking for, to know how much bandwidth has been used.
But I see traffic from days ago, it lost only when the power off the electricity of the device only.
but still can see a few days usage of the bandwidth normally so it will not be lost if I reboot, the issue only with power off that I lost the last data.
Back to top
missblack DD-WRT Novice Joined: 03 May 2017 Posts: 10
Posted: Fri Apr 02, 2021 19:25 Post subject:
I am not sure I understand scripting
but does this solve it?
How?
In Additional Cron Jobs maybe?
Code: 0 * * * * nvram commit
Is it correct?
Back to top
blkt DD-WRT Guru Joined: 20 Jan 2019 Posts: 5700
Posted: Fri Apr 02, 2021 20:26 Post subject:
nvram commit is correct as ttraffd does once a day at 23:59, but ensure time zone is set and time is synced.
https://svn.dd-wrt.com//browser/src/router/rc/ttraff.c
A reboot command automatically commits nvram, or you can manually run nvram commit before power off.
Back to top
missblack DD-WRT Novice Joined: 03 May 2017 Posts: 10
Posted: Fri Apr 02, 2021 20:52 Post subject:
blkt wrote: nvram commit is correct as ttraffd does once a day at 23:59, but ensure time zone is set and time is synced.
https://svn.dd-wrt.com//browser/src/router/rc/ttraff.c
A reboot command automatically commits nvram, or you can manually run nvram commit before power off.
So, I can't add to Additional Cron Jobs
Like this :
Back to top
blkt DD-WRT Guru Joined: 20 Jan 2019 Posts: 5700
Posted: Fri Apr 02, 2021 21:01 Post subject:
I'm not saying what you can or cannot do, but I personally would not automate nvram commit every hour.
Maybe consider an external bandwidth monitoring solution, ttraffd is the first thing I disable on my routers.
There is also this, though no longer developed. YAMon 3.4 - usage monitoring for your router
Back to top
missblack DD-WRT Novice Joined: 03 May 2017 Posts: 10
Posted: Fri Apr 02, 2021 21:17 Post subject:
blkt wrote: ttraffd is the first thing I disable on my routers.
Yes, but why you disable it, I found it useful.
Back to top
blkt DD-WRT Guru Joined: 20 Jan 2019 Posts: 5700
Posted: Fri Apr 02, 2021 21:24 Post subject:
I would consider it if logging more than the most basic information and with ability to store data externally.
Back to top