如何读取RRD文件以获取使用情况数据? [英] How to read RRD file to get usage data?
问题描述
我已经使用rrdtool设置了mrtg设置.现在,我正计划从这些RRD文件中获取传入的传出使用情况数据,并且无法找到正确的方法来执行此操作.谁能告诉我们如何从rrd文件中获取这些使用情况数据.然后,我可以维护一个数据库以保留这些使用情况数据并计算成本等.
I have setup a mrtg setup with rrdtool. Now I'm planning to get incoming outgoing usage data from these RRD files and failing to find a correct way to do it. Can anyone show we how to get those usage data from rrd files. Then I can maintain a db to keep those usage data and calculate the cost etc.
谢谢!
推荐答案
您可以使用rrdtool graph ... PRINT:xxx
或rrdtool xport ...
从rrd文件中获取数据.如果要获取实际数据,请使用rrdtool fetch
.
you can use rrdtool graph ... PRINT:xxx
or rather rrdtool xport ...
to get data out of the rrd file. If you want to get to the actual data, use rrdtool fetch
.
您可以在 http://rrdtool.org
这篇关于如何读取RRD文件以获取使用情况数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!