How to read RRD file to get usage data?

本秂侑毒 提交于 2019-12-21 05:12:13

问题


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.

Thank you!


回答1:


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.

you can find tons of additional info on http://rrdtool.org



来源:https://stackoverflow.com/questions/14494114/how-to-read-rrd-file-to-get-usage-data

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!