[rrd-users] Undesired fractions
Tuc at T-B-O-H.NET
ml at t-b-o-h.net
Tue Dec 18 16:22:55 CET 2007
> > #!/bin/bash
> >
> > rrdtool create foo.rrd --step 1 DS:foo:GAUGE:120:U:U RRA:LAST:0:1:60;
> > rrdtool update foo.rrd N:0;
> > sleep 1;
> > rrdtool update foo.rrd N:1;
> > # Show problem
> > rrdtool dump foo.rrd | grep '\.[1-9]';
> >
(some deleted)
>
> now=`date +%s`
> now=$(( ${now} / 60 * 60 ))
> # 60 is your step size, this gets the last date value which is an
> exact multiple of your step
> # set your values here
> rrdtool update foo.rrd ${now}:....
>
> I suggest you go to http://www.vandenbogaerdt.nl/rrdtool/ and read
> the page that explains normalisation.
>
AH. Now, after reading the web page 1/2 a dozen times, AND
seeing this example, NOW the world makes sense. :)
Ok, thank you. The only real last question that still isn't
making sense is the "LAST" CF. Is there more details of it
(IE: Example) somewhere?
Thanks, Tuc
More information about the rrd-users
mailing list