[rrd-users] Weekly graph not correct
Wesley Schwengle
wesley.schwengle at is.online.nl
Thu Sep 18 11:50:51 CEST 2008
Hello all,
I'm having some problems with graphing. When I want to display the last 7 days, however my graphs only show the last 4 days of data..
Below you will find the create and the graph statements which I use (http://search.cpan.org/~mschilli/RRDTool-OO-0.22/lib/RRDTool/OO.pm). I think it has to do with the rows statement in the create. Could one point me into the correct direction as I am fairly new to RRD tool.
$rrd->create(
step => 300,
start => time() - 24 * 60 * 60,
data_source => {
name => 'impacted',
type => "GAUGE",
heartbeat => 600,
},
archive => { cpoints => 1, rows => 1200, cfunc => 'LAST' }
);
$rrd->graph(
image => $img,
vertical_label => 'Impacted users',
start => time() - ( 7 * 24 * 60 * 60),
draw => {
type => 'line',
color => '0000FF',
thickness => 2,
cfunc => 'LAST',
}
);
Cheers,
Wesley
More information about the rrd-users
mailing list