try {
rrd = new RRDatabase(rrdFile);
// no period specified, so request the last 24 hours
chunk = rrd.getData(ConsolidationFunctionType.AVERAGE);
// retrieve the data for the first datasource
Map<Date, Double> values = chunk.toMap(0);
for(Map.Entry<Date, Double> entry : values.entrySet()) {
Date index = entry.getKey();
double v = entry.getValue();
System.out.println("index: <" + index + ">, value <" + v + ">");
}