我在 Windows 平台上使用 RRDTool 版本 1.2.30,我有一个 .rrd 文件,当我尝试使用“rrdtool fetch”获取数据时,出现以下错误。
ERROR: the RRD does not contain an RRA matching the chosen CF
在执行以下命令时
rrdtool fetch usage.rrd AVERAGE -r 3600 -s 1298264400 -e 1298350800
我真的不知道这有什么问题,即使我尝试使用 rrdtool dump over use.rrd 查看 xml 中的数据,它向我显示以下错误。
<!-- Round Robin Database Dump --><rrd> <version> 0003 </version
<step> 2 </step> <!-- Seconds -->
<lastupdate> 0 </lastupdate> <!-- 1970-01-01 05:30:00 In
e -->
<ds>
<name> </name>
<type> </type>
<minimal_heartbeat> 0 </minimal_heartbeat>
<min> 5.9287877501e-322 </min>
<max> NaN </max>
<!-- PDP Status -->
<last_ds> LAST </last_ds>
<value> 5.0000000000e-001 </value>
<unknown_sec> 1 </unknown_sec>
</ds>
<ds>
<name> </name>
<type> </type>
<minimal_heartbeat> 0 </minimal_heartbeat>
<min> 5.9287877501e-322 </min>
<max> NaN </max>
<!-- PDP Status -->
<last_ds> </last_ds>
<value> 2.4703282292e-323 </value>
<unknown_sec> 2016 </unknown_sec>
</ds>
<!-- Round Robin Archives --></rrd>
ERROR: unknown data acquisition function ''
最佳答案
我的猜测是,这个rrd文件是由rrdtool的其他副本创建的...在Windows下,可以通过使用不同的编译器编译它们来创建稍微不兼容的rrdtool版本:-(
关于rrdtool - 无法从rrd文件中获取数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5090476/