Re: Graph history being overwritten

Troy Lea <[email protected]> Thu, 29 Jun 2017 21:42:30 +0000
Newsgroups gmane.network.mrtg.user
Message-ID <PS2P216MB0049E7862CC1A0EB37C67337E8D20@PS2P216MB0049.KORP216.PROD.OUTLOOK.COM>
--===============4832127494847952645==
Content-Language: en-AU
Content-Type: multipart/alternative;
	boundary="_000_PS2P216MB0049E7862CC1A0EB37C67337E8D20PS2P216MB0049KORP_"

--_000_PS2P216MB0049E7862CC1A0EB37C67337E8D20PS2P216MB0049KORP_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

With RRD files there is an rrdmerge script that will import the old data in=
to the new files:


I can't find the original download I used but it looks like this one is the=
 same.


https://bitbucket.org/flyingcircus/rrdmerge

<https://bitbucket.org/flyingcircus/rrdmerge>

The only consideration required is that the architectures of the old machin=
e and new machine must be the same (i.e. x86_64). <https://support.nagios.c=
om/kb/article/nagios-xi-migrate-performance-data.html>


Otherwise you need to export to an XML file first. This KB article explains=
 how to do an export/import https://support.nagios.com/kb/article/nagios-xi=
-migrate-performance-data.html


Good luck.

________________________________
From: mrtg <[email protected]> on behalf=
 of Edwin A. Epstein III <[email protected]>
Sent: Friday, 30 June 2017 5:01 AM
To: mrtg
Subject: [mrtg] Graph history being overwritten

Hi,

I find myself needing to restore some graphs after a server died. MRTG is w=
orking on a new server without issue, except for the fact it overwrites all=
 files placed on it.

When I copy in the .old and .log files for a target and initiate MRTG it al=
ways replaces the entirety of the two files with zeros and the graph histor=
y is gone. In some cases, we have graph history going back 2 years or more.

What is the best way to restore these old files? Additionally, what is the =
best way to merge old data, or two graphs into one?


Sincerely,

Edwin A Epstein, III
Rhinobee Internet Services



--_000_PS2P216MB0049E7862CC1A0EB37C67337E8D20PS2P216MB0049KORP_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1">
<style type=3D"text/css" style=3D"display:none;"><!-- P {margin-top:0;margi=
n-bottom:0;} --></style>
</head>
<body dir=3D"ltr">
<div id=3D"divtagdefaultwrapper" style=3D"font-size:12pt;color:#000000;font=
-family:Calibri,Helvetica,sans-serif;" dir=3D"ltr">
<p>With RRD files there is an rrdmerge script that will import the old data=
 into the new files:</p>
<p><br>
</p>
<p>I can't find the original download I used but it looks like this one is =
the same.</p>
<p><br>
</p>
<p><a href=3D"https://bitbucket.org/flyingcircus/rrdmerge" class=3D"OWAAuto=
Link" id=3D"LPlnk832717" previewremoved=3D"true">https://bitbucket.org/flyi=
ngcircus/rrdmerge</a></p>
<p><a href=3D"https://bitbucket.org/flyingcircus/rrdmerge" class=3D"OWAAuto=
Link" id=3D"LPlnk832717" previewremoved=3D"true"></a><br>
</p>
<p>The only consideration required is that the architectures of the old mac=
hine and new machine must be the same (i.e. x86_64).&nbsp;<a href=3D"https:=
//support.nagios.com/kb/article/nagios-xi-migrate-performance-data.html" cl=
ass=3D"OWAAutoLink" id=3D"LPlnk148666" previewremoved=3D"true"></a>
<br>
</p>
<p><br>
</p>
<p>Otherwise you need to export to an XML file first. This KB article expla=
ins how to do an export/import
<a href=3D"https://support.nagios.com/kb/article/nagios-xi-migrate-performa=
nce-data.html" class=3D"OWAAutoLink" id=3D"LPlnk148666" previewremoved=3D"t=
rue">
https://support.nagios.com/kb/article/nagios-xi-migrate-performance-data.ht=
ml</a></p>
<p><br>
</p>
<p>Good luck.<br>
</p>
<br>
<div style=3D"color: rgb(0, 0, 0);">
<hr tabindex=3D"-1" style=3D"display:inline-block; width:98%">
<div id=3D"divRplyFwdMsg" dir=3D"ltr"><font style=3D"font-size:11pt" color=
=3D"#000000" face=3D"Calibri, sans-serif"><b>From:</b> mrtg &lt;mrtg-bounce=
s&#43;[email protected]&gt; on behalf of Edwin A. Eps=
tein III &lt;[email protected]&gt;<br>
<b>Sent:</b> Friday, 30 June 2017 5:01 AM<br>
<b>To:</b> mrtg<br>
<b>Subject:</b> [mrtg] Graph history being overwritten</font>
<div>&nbsp;</div>
</div>
<div>
<div style=3D"font-family:arial,helvetica,sans-serif; font-size:12pt; color=
:#000000">
<div style=3D"font-family:arial,helvetica,sans-serif; font-size:12pt; color=
:#000000">
<div>
<div>Hi,</div>
<br>
<div>I find myself needing to restore some graphs after a server died. MRTG=
 is working on a new server without issue, except for the fact it overwrite=
s all files placed on it.
<br>
</div>
<br>
<div>When I copy in the .old and .log files for a target and initiate MRTG =
it always replaces the entirety of the two files with zeros and the graph h=
istory is gone. In some cases, we have graph history going back 2 years or =
more.<br>
</div>
<br>
<div>What is the best way to restore these old files? Additionally, what is=
 the best way to merge old data, or two graphs into one?</div>
</div>
<br>
<br>
<div>
<div style=3D"color:#000000; font-family:arial,helvetica,sans-serif; font-s=
ize:16px; font-style:normal; font-variant:normal; font-weight:normal; lette=
r-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-=
indent:0px; text-transform:none; white-space:normal; widows:1; word-spacing=
:0px">
<span style=3D"font-family:tahoma,'new york',times,serif; font-size:12pt">S=
incerely,</span><br>
<br>
<span style=3D"font-family:tahoma,'new york',times,serif; font-size:12pt">E=
dwin A Epstein, III</span></div>
<div style=3D"color:#000000; font-family:arial,helvetica,sans-serif; font-s=
ize:16px; font-style:normal; font-variant:normal; font-weight:normal; lette=
r-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-=
indent:0px; text-transform:none; white-space:normal; widows:1; word-spacing=
:0px">
Rhinobee Internet Services</div>
<div style=3D"color:#000000; font-family:arial,helvetica,sans-serif; font-s=
ize:16px; font-style:normal; font-variant:normal; font-weight:normal; lette=
r-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-=
indent:0px; text-transform:none; white-space:normal; widows:1; word-spacing=
:0px">
<br>
</div>
<div style=3D"color:#000000; font-family:arial,helvetica,sans-serif; font-s=
ize:16px; font-style:normal; font-variant:normal; font-weight:normal; lette=
r-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-=
indent:0px; text-transform:none; white-space:normal; widows:1; word-spacing=
:0px">
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>

--_000_PS2P216MB0049E7862CC1A0EB37C67337E8D20PS2P216MB0049KORP_--


--===============4832127494847952645==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
mrtg mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg

--===============4832127494847952645==--