<br><tt><font size=2>rrd-users-bounces@lists.oetiker.ch wrote on 09/07/2008
02:25:35:<br>
<br>
> > I know that I can convert my MRTG .log file to RRD databases
by adding the <br>
> > "LogFormat: rrdtool" line in MRTG's configuration files.
However, the RRA <br>
> > generated by doing this don't satisfy me.<br>
> <br>
> I don't remember when/where/what, but I'm almost 100% sure I've seen<br>
> a solution for this. Try google.<br>
></font></tt>
<br>
<br><tt><font size=2>I'm pretty sure also but you already gave me a very
good tip hereunder :-)</font></tt>
<br>
<br><tt><font size=2>> <br>
> <br>
> I suggest looking in MRTG or RateUp, find the part where it creates
the<br>
> new database and modify that part.<br>
> <br>
</font></tt>
<br><tt><font size=2>Great! I didn't realized MRTG was written in Perl.
</font></tt>
<br>
<br><tt><font size=2>Actually, I think I'll have to modify function "log2rrd"
in file MRTG_lib.pm:</font></tt>
<br>
<br><tt><font size=2> sub log2rrd ($$$)
{</font></tt>
<br><tt><font size=2>
...</font></tt>
<br><tt><font size=2>
my @steps = qw(300 1800 7200 86400);</font></tt>
<br><tt><font size=2>
my %sizes = ( 300 => 600, 1800 => 700, 7200 => 775, 86400 =>
797);</font></tt>
<br><tt><font size=2>
...</font></tt>
<br>
<br><tt><font size=2>Am I dreaming? Could it be so simple? :-)</font></tt>
<br>
<br><tt><font size=2>Thanks Alex</font></tt>
<br>
<br><tt><font size=2>Cyrille</font></tt>