[rrd-users] Extracting single values using rrdtool

Mohr James james.mohr at elaxy.com
Wed Apr 15 16:15:10 CEST 2009


Hi All!

 

I am pretty new to RRD, so please forgive any overly-newbie question. I
did read the doc and googled, but there are a number of holes and I
cannot find the answers I am looking for.

 

I am developing a dashboard for our company that contains data from
various sources. One is performance data that we write to RRD. In once
RRD file we have the response time for a specific web page. What I am
trying to do is pull out the average  response time over the last hour,
last 24 hours and last week and then display the numeric values in the
dashboard. 

 

I can get the 5-minute averages over the last hour (I think) with this
command:

 

rrdtool fetch response.rrd AVERAGE -r 300 -s -1h

 

 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.  

 

It would be fairy straight forward to write something to manually
calculate the average based on the data output, but I was hoping I would
not have to re-invent the wheel.

 

Any input is appreaciated.

 

Regards,

 

jim




--
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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-users/attachments/20090415/1c722dd1/attachment.html 


More information about the rrd-users mailing list