[rrd-users] fetching rrd into jsp pages

Eduardo Bragatto eduardo at bragatto.com
Thu Apr 14 15:59:53 CEST 2011

On Apr 14, 2011, at 10:50 AM, amir wrote:

> Dear Kevin
> but,I want to show it numerically.

I can think of two ways, depending on what you want exactly.

1) Export your entire RRD file to a XML file using "rrdtool xport" and  
read the data from the XML;

2) Use "rrdtool fetch" to retrieve data from a specific period of time  
and specific resolution;

In both cases all you need to do is a system call to "rrdtool" with  
the appropriate parameters and use the results in your JSP script.

For more information, make sure to read the documentation from  
rrdtool.org which is very detailed and also contains some examples.

Best regards,
Eduardo Bragatto.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-users/attachments/20110414/b7a54749/attachment.htm 

More information about the rrd-users mailing list