[mrtg] View historical mrtg data

Edwin A. Epstein III ed at rhinobee.com
Fri May 25 00:16:03 CEST 2018


Hi Chris,

I don't believe that may be possible, or will give you the results you want.Simplistically, MRTG "compresses" the results and creates a Weekly data point each time the Weekly graph would increment. Likewise, it does so each time it increments the Monthly and Yearly. The number of data points for Daily, Weekly, and Monthly never change. At some point when the Yearly is incremented it does deposit some history that keeps growing and is not capped at the number of records. So if you had a MRTG target running for 10 years you could see the yearly graph data across the entire time span.

The actual log file structure is discussed in detail in the documentation at https://oss.oetiker.ch/mrtg/doc/mrtg-logfile.en.html

If you wanted to maintain the data in the fashion you desire, you would probably need to upgrade to RRDtool and Routers2. As that data would stored in that format, you could pass it through something like Grafana and generate whatever graphs you want. IIRC, there was a gentleman that posted to this list his results in integrating Grafana with MRTG. He shared working code that would swap the internal graphing engine out for Grafana instead.

Alternatively, you could archive the log files every 24 hours appending to a single file. You would then dedupe the lines, but would find you have archived all the daily data points. 

 







Sincerely, 

Edwin A Epstein, III 
Rhinobee Internet Services 
707.237.7504 ext 209 
707.737.0288 Mobile

----- Original Message -----
Sent: Thursday, May 24, 2018 3:00:02 AM
Subject: mrtg Digest, Vol 128, Issue 4

Send mrtg mailing list submissions to
	mrtg at lists.oetiker.ch

To subscribe or unsubscribe via the World Wide Web, visit
	https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
or, via email, send a message with subject or body 'help' to
	mrtg-request at lists.oetiker.ch

You can reach the person managing the list at
	mrtg-owner at lists.oetiker.ch

When replying, please edit your Subject line so it is more specific
than "Re: Contents of mrtg digest..."


Today's Topics:

   1. View historical mrtg data. (Chris Maverley)


----------------------------------------------------------------------

Message: 1
Date: Thu, 24 May 2018 09:52:26 +0100
From: "Chris Maverley" <c.maverley at permanet.ie>
To: <mrtg at lists.oetiker.ch>
Subject: [mrtg] View historical mrtg data.
Message-ID: <0aab01d3f33c$8a3060d0$9e912270$@permanet.ie>
Content-Type: text/plain; charset="us-ascii"

Hi Folks,

 

Does anyone know a method to view historical MRTG data in day and week
format.

EG I want to view data from July1st 2017 and see it as a daily graph.

 

Thanks,

Chris.

 



---
This email has been checked for viruses by AVG.
http://www.avg.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.oetiker.ch/pipermail/mrtg/attachments/20180524/3fe50326/attachment-0001.html>

------------------------------

Subject: Digest Footer

_______________________________________________
mrtg mailing list
mrtg at lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg


------------------------------

End of mrtg Digest, Vol 128, Issue 4
************************************
(null)



More information about the mrtg mailing list