Avatar of samuellam
samuellam
 asked on

How to generate traffic usage on mrtg

Dear all expert
I had lost all the mrtg traffice data,
and I was urgent enough to  generate the past data.


HOw can I generate the fake data pass through the year.

thx thx
Routers

Avatar of undefined
Last Comment
PashaMod

8/22/2022 - Mon
helpquick

Hi,

MRTG gathers it's information from the router every 5 minutes, this data is held in a file called <target_name>.log, this would have the same name as the HTML file that MRTG creates.

As MRTG gets a snapshot of the current activity, if you have lost the .log file, MRTG will start again, or you can restore the log file.

If you restore the log file, then you will get a period of constant utilisation (according to mrtg) as no data would have been collected between the backup time and the restored time.

Hope this helps

HelpQuick
Les Moore

G'day, samuellam
like helpquick noted, there is a .log file in the workdirectory. It's a simple text file that you can edit to provide whatever you want for previous traffic by following the same syntax as the rest of the lines.

Cheers!
Les Moore

samuellam,
No comment has been added lately (106 days), so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area for this question:

RECOMMENDATION: PAQ/No Refund

Please leave any comments here within 7 days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Thanks,

lrmoore
EE Cleanup Volunteer
---------------------
If you feel that your question was not properly addressed, or that none of the comments received were appropriate answers,
please post comments here where a Moderator will see it.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
ASKER CERTIFIED SOLUTION
PashaMod

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.