[rrd-users] Extracting single values using rrdtool

Erik de Mare erik at oezie.org
Thu Apr 16 16:49:04 CEST 2009


for that there is the PRINT function in rrdtool graph, instead of the 
GPRINT. PRINT prints it to the stdout.

Bredi wrote:
> 
> 
> 
>  The problem is that I get a list of values over the last hour as
> opposed to a single value representing the average over the hour.  
> 
> 
> 
> You can get one value if you use 'rrdtool xport' with the same start and endtime.
> Using 'rrdtool last' will give you the latest update time. You can use this time for the 'rrdtool xport' but you have to substract the step in second of your database. I'm sorry but I don't know why you have to do this. ;-)
> This disatvantage of this procedure is to parse the xport output with an XML tool.
> 
> Best regards, Bredi.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3611 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.oetiker.ch/pipermail/rrd-users/attachments/20090416/1fded418/attachment.bin 


More information about the rrd-users mailing list