Instead of creating a graph, I need to simply output a number that is the average, max or min of some date range supplied. I have had good success with the following code:
rrdtool graph a.png --start=1325484000 --end=1364472365 DEF:power=/data1/bpoll/rrd/ws3/pdu/pdu316/a.rrd:ct12:AVERAGE 'PRINT:power:AVERAGE:%2.1lf'
However, looking at the docu, it says specifying the CF
(in this case AVERAGE) is deprecated. Yet I am completely lost as to the new format. At least I can't seem to wrap my head around it. If I leave out the CF
, it errors. Where exactly am I going wrong here?