[rrd-users] find first valid dp in rrd

Karl Fischer rrd-users at ficos.de
Sat Nov 15 00:19:32 CET 2008


Hi there,

is there a good way to find the first valid (not UNKN) datapoint in rrd?

rrdtools first doesn't quite do what I expected.
Instead it gives you "rrdtools last" - rrasize.

Example:
If I have created a rrd like this and I started to use it a week ago,
I'm looking for a way to find out when that fist value was entered
into the rrd. Instead of telling me the first 'valid' DP in that rrd,
"rrdtools first file.rrd" tells me 'now - 3 days' and
"rrdtools first file.rrd --rraindex 3" tells me 'now - 1800 days'
What I would like to get is that point in time a week ago when I
entered the first value.

 --step=1
 DS:loadavg:GAUGE:10:0:U
 RRA:AVERAGE:0.5:1:259200     # 3 days
 RRA:AVERAGE:0.5:10:259200    # 30 days
 RRA:AVERAGE:0.5:60:259200    # 180 days
 RRA:AVERAGE:0.5:600:259200   # 1800 days


any ideas?

many thanks

- Karl



More information about the rrd-users mailing list