[rrd-users] Extracting single values using rrdtool

Mohr James james.mohr at elaxy.com
Thu Apr 16 19:30:47 CEST 2009


Thanks! That was a nice shove. It took me a lot of trial and error, and some googling, but I figured it out. 

I have one more question. I get an output that looks like this

0x0
0.495240

From what I read, the 0x0 represents the image that would have been created. Is there any way to get rrdtool to simply not try to create the graph? I can grep  out the string, but that doesn't seem as clean.

-----Ursprüngliche Nachricht-----
Von: rrd-users-bounces at lists.oetiker.ch [mailto:rrd-users-bounces at lists.oetiker.ch] Im Auftrag von Erik de Mare
Gesendet: Donnerstag, 16. April 2009 16:49
An: rrd-users at lists.oetiker.ch
Betreff: Re: [rrd-users] Extracting single values using rrdtool

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.



--
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.




More information about the rrd-users mailing list