Failed to get data from rrd file

I use RRDTool version 1.2.30 on a Windows platform, I have one .rrd file, and when I tried to extract data using 'rrdtool fetch', it gives me the following error.

ERROR: RRD does not contain RRA matching the selected CF

when running the following command

rrdtool fetch usage.rrd AVERAGE -r 3600-s 1298264400 -e 1298350800

I really don't know what happened with this, even when I tried to view the data in xml using rrdtool dump over usage.rrd, it shows me the following error.

<!-- 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 '' 
+4
source share
2 answers

I assume that this rrd file was created by another copy of rrdtool ... under the windows you can create several incompatible versions of rrdtool, compiling them with different compilers: - (

+4
source

The Rrd database created on Linux is not compatible with rrdtool (the same version) on Windows. Tested on version 1.3.8.

You must export rrd to xml on Linux:

 rrdtool dump file.rrd > file.xml 

and import it into Windows:

 rrdtool.exe restore file.xml file.rrd 

If your local representation of the floating point number is different from Linux (1.234e + 05) and Windows (1,234e + 05), you must convert the numbers to file.xml before importing.

+1
source

Source: https://habr.com/ru/post/1340950/


All Articles