[rrd-users] New Perl Module - RRD-Tweak

Reinhard Scheck Reinhard.Scheck at team-scheck.de
Thu Jul 19 21:40:47 CEST 2012


Ok, I have to answer my own stupid question:

<cite>All DS parameters described for the create() method are supported.</cite>

"step" is not part of DS parameters as I should have known.
And thus, my request is invalid.
Sorry for the noise

Reinhard

On 19.07.2012 21:33, Reinhard Scheck wrote:
> I'm just trying to check this very interesting module.
> Docs tell us, that even modifying DS' "step" should be possible.
> My code:
> 
> use RRD::Tweak;
> use Data::Dumper;
> my $filename1 = 'cpu.rrd';
> my $filename2 = 'cpu2.rrd';
> 
> my $rrd = RRD::Tweak->new();
> $rrd->load_file($filename1);
> my $rrd_info = $rrd->info();
> print Dumper( $rrd_info );
> 
> $rrd->modify_ds(0, {step => 60});
> 
> my $rrd_info = $rrd->info();
> print Dumper( $rrd_info );
> 
> $rrd->save_file($filename2);
> 
> 
> Neither $rrd_info nor "rrdtool info cpu2.rrd" show the wanted modification.
> Am I trying to extend usage beyond limits?
> 
> Reinhard
> 
> 
> On 22.06.2012 14:57, Tobias Oetiker wrote:
>> RRD-Tweak
>> ---------
>> by Stanislav Sinyagin
> 
> _______________________________________________
> rrd-users mailing list
> rrd-users at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
> 



More information about the rrd-users mailing list