Jeffrey Young
Very Senior Member
Yeah, that is what I thought too. More of a hail maryThe traffic analyser database and the rstats file are two completely different and unrelated things.
Yeah, that is what I thought too. More of a hail maryThe traffic analyser database and the rstats file are two completely different and unrelated things.
Traffic Analyzer (Trend Micro) is not the same thing as Traffic Monitor (rstats).Found it in/jffs/.sys/TrafficAnalyzer/TrafficAnalyzer.db
rstats
, rm /var/lib/misc/rstats*
, rm /tmp/mnt/sda1/stats/tomato*
(where I've configured stats to be saved), and then start rstats
you will still see the past month's data in the UI. I assumed since TrafficAnalyzer.db
had information that also dated from 3/1 onwards that this is where the data was coming from. If not, can someone please assist in finding the other data repository for rstats
?nvram show | grep ^rstats
Writing <2kB of data once an hour is a drop in the ocean compared to other write activity on the USB drive. Seriously, what kind of USB stick can't cope with writing 17MB of data a year.I don't want to write to the USB a lot and wear it out.
I suggest you try again but this time confirm that the process was killed successfully withI stopped rstats withpidof rstats
andkill [pid]
ps w | grep rstats
.Please show us which router page you are looking at.you will still see the past month's data in the UI.
That screenshot is the Traffic Analyzer (TrafficAnalyzer.db) not the Traffic Monitor (rstats).
So if you change the "Last date:" field to 16th March on the monthly Traffic Analyzer graph what does it look like?It appears so. I wasn't aware that there were two separate and distinct sources of traffic history maintained in parallel on the filesystem.
So when I say I'm losing my traffic history on upgrade, I'm talking about the Traffic Analyzer history. As far as I recall, that didn't used to be the case until 386.3_2. The aggregated history isn't very useful to me as my historical research usually consists of something like, "Did Netflix always consume 100 GB per month?"
It very well could be that it's not related to upgrading and the new behavior of trimming everything but the current month is just new and I haven't noticed for a couple of months.
I don't have anything installed other than those in my signature and custom DDNS and NTPMerlin. Unless one of those covertly trims TrafficAnalyzer.db, I don't think I have anything that could even be a suspect.OK. As you said that when you examined your backup files this truncation was taking place at the start or end of each month I would look for third-party scripts that run on that schedule. This truncation has not happened this month so perhaps it was a script that you had running in the past but not anymore.
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!