Pff, it's working. I grep'ed for last_ds in the rrd file and that's not the last value in the rrd like I thought. Stef