[rrd-users] Get time for last complete RRA ?

Simon Hobson linux at thehobsons.co.uk
Thu Sep 26 17:23:06 CEST 2013


I'm just setting off to collect data (mail queue stats) from several servers and consolidate it. So far I have each server getting data locally, and updating server-specific RRDs via cached. What I want to do is write a script that checks the timestamp for the last complete RRA in each of those, and if they are newer than for the consolidated RRD, fetch the last values, add them, and store them in a consolidated RRD.

I need to do it this way so that further consolidation still allows graphs for min & max of the total values.

So, I need to be able to do <some command> which will return the timestamp for the newest completed bucket of a spcific RRA in an RRD. Is there a specific command, or do I need to use rrdtool last and compute what I need ?



More information about the rrd-users mailing list