[rrd-users] Last "yearly" values

Alex van den Bogaerdt alex at vandenbogaerdt.nl
Thu Aug 25 09:24:21 CEST 2011


> Hi All,
>
> I have a question concerning yearly values. Usually there are
> different aggregations like 5-min., 30-min., 2-hours and 1-day.
>
> How can I get the last 1-day values from rrd (by means of
> rrdtool)? I can get the last update but I am not sure about the
> values aggregated. (Something like "rrdtool lastupdate-1day"
> if it existed...)

Use rrdtool graph.
Take the current time in seconds since the epoch. Integer divide by 86400,
then multiply by 86400. This is your end time.  Start is end-86400. PRINT
the average.




More information about the rrd-users mailing list