[rrd-users] rrdresize mangles timestamps

Stefan M. Brandl smb at r-kom.de
Wed Jan 20 14:50:14 CET 2010


On Wed, Jan 20, 2010 at 01:13:35PM +0100, Stefan M. Brandl wrote:
> Hi,
> I have a rrd where I want to change the size of an rra.
> The dump of the original rrd looks like:
> 
> <?xml version="1.0" encoding="utf-8"?>
> <!DOCTYPE rrd SYSTEM "http://oss.oetiker.ch/rrdtool/rrdtool.dtd">
> <!-- Round Robin Database Dump --><rrd> <version> 0003 </version>
>         <step> 300 </step> <!-- Seconds -->
>         <lastupdate> 1263984913 </lastupdate> <!-- 2010-01-20 11:55:13 CET -->
> 
> [...]
>                 <database>
>                         <!-- 2010-01-18 10:00:00 CET / 1263805200 --> <row><v> 2.6164604836e+07 </v><v> 3.4281121258e+07 </v></row>
>                         <!-- 2010-01-18 10:05:00 CET / 1263805500 --> <row><v> 2.4357334629e+07 </v><v> 3.1649946215e+07 </v></row>
> 
> 
> 
> 
> If I do:
> rrdtool resize test.rrd 0 GROW 200
> and then do an rrdtool dump resize.rrd 
> I get:
> 
> <?xml version="1.0" encoding="utf-8"?>
> <!DOCTYPE rrd SYSTEM "http://oss.oetiker.ch/rrdtool/rrdtool.dtd">
> <!-- Round Robin Database Dump --><rrd> <version> 0003 </version>
>         <step> 300 </step> <!-- Seconds -->
>         <lastupdate> 925971762 </lastupdate> <!-- 1999-05-06 08:22:42 CEST -->
> 
> [...]
> 
>                 <database>
>                         <!-- 1999-05-03 13:45:00 CEST / 925731900 --> <row><v> NaN </v><v> NaN </v></row>
>                         <!-- 1999-05-03 13:50:00 CEST / 925732200 --> <row><v> NaN </v><v> NaN </v></row>
> 
> 
> 
> 
> The rra growed by 200 rows, but the timestamps
> are totaly broken.
> I can reproduce this with different rrds.
> rrdtool version is 1.3.9.
> Is this a bug?
> 

Ok, this seems to be a bug in 1.3.9.
With 1.4.2 everything seems to be ok.


Stefan



More information about the rrd-users mailing list