[rrd-users] how to get plain numbers from rrd

Simon Hobson linux at thehobsons.co.uk
Wed Sep 8 21:26:26 CEST 2010


Piotr_1939 wrote:

>i try to get pure numbers from rrd:
>
>rrdtool xport  --start now-1h --end now  DEF:out=1.rrd:s1_in:AVERAGE
>XPORT:out:"out bytes"
>
>but i got xml, i looking some way to get numbers like this:
>
>GPRINT:s1_in:LAST: actual \: %5.2lf %sbps
>
>Can i save or redirect output of this "function" in file or standard output
>?

Use PRINT instead of GPRINT ?

-- 
Simon Hobson

Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed
author Gladys Hobson. Novels - poetry - short stories - ideal as
Christmas stocking fillers. Some available as e-books.



More information about the rrd-users mailing list