> >     #!/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

_______________________________________________
rrd-users mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users

Reply via email to