[rrd-users] New Perl Module - RRD-Tweak
Reinhard Scheck
Reinhard.Scheck at team-scheck.de
Thu Jul 19 21:33:03 CEST 2012
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
More information about the rrd-users
mailing list