Hi! Thanks for all the help I finally was able to export my .rrd files on a x64 machine back into plain .xml files. However running a script to restore the xml files fail.
Here is my script used to push the files back into rrd form from xml format.
[root@localhost ~]# cat xml2rra.sh
#!/bin/bash
#import xml 2 rrd
cactipath='/root/rranew/'
mounted='/root/rraxml/'
files=$(ls $mounted | grep "rrd.xml" | cut -d "." -f 1 )
for i in $files; do
rrdtool restore "$mounted/$i.rrd.xml" "$cactipath/$i.rrd"
echo "$i.xml nach $cactipath/$i.rrd importiert"
done
The /root/rraxml directory holds all the rrd.xml files. Here is a snapshot of what it looks like.
1150_core_5min_cpu_745.rrd.xml lgaasa1_errors_in_1119.rrd.xml vssiswitch_traffic_in_388.rrd.xml
1150_core_cisco_memfree_741.rrd.xml lgaasa1_errors_in_1120.rrd.xml vssiswitch_traffic_in_389.rrd.xml
1150_core_cisco_memused_742.rrd.xml lgaasa1_errors_in_1121.rrd.xml vssiswitch_traffic_in_390.rrd.xml
1150_core_cisco_tempcur_743.rrd.xml lgaasa1_errors_in_1122.rrd.xml vssiswitch_traffic_in_391.rrd.xml
1150_core_cisco_tempthr_744.rrd.xml
The /root/rranew is where I want to move the new files to. Can someone please let me know what I am doing wrong? Thanks.
Here are the errrors and the directory I am trying to move the files to remains non-populated with new rrd files.
lgaiswitch_errors_in_194.xml nach /root/rranew//lgaiswitch_errors_in_194.rrd importiert
ERROR: No <xff> tag found
lgaiswitch_errors_in_195.xml nach /root/rranew//lgaiswitch_errors_in_195.rrd importiert
ERROR: No <xff> tag found
lgaiswitch_errors_in_196.xml nach /root/rranew//lgaiswitch_errors_in_196.rrd importiert
ERROR: No <xff> tag found
lgaiswitch_errors_in_197.xml nach /root/rranew//lgaiswitch_errors_in_197.rrd importiert
ERROR: No <xff> tag found
lgaiswitch_errors_in_198.xml nach /root/rranew//lgaiswitch_errors_in_198.rrd importiert
ERROR: No <xff> tag found
lgaiswitch_errors_in_199.xml nach /root/rranew//lgaiswitch_errors_in_199.rrd importiert
ERROR: No <xff> tag found
lgaiswitch_errors_in_200.xml nach /root/rranew//lgaiswitch_errors_in_200.rrd importiert
ERROR: No <xff> tag found
lgaiswitch_errors_in_201.xml nach /root/rranew//lgaiswitch_errors_in_201.rrd importiert
ERROR: No <xff> tag found
lgaiswitch_errors_in_202.xml nach /root/rranew//lgaiswitch_errors_in_202.rrd importiert
ERROR: No <xff> tag found
lgaiswitch_errors_in_203.xml nach /root/rranew//lgaiswitch_errors_in_203.rrd importiert
ERROR: No <xff> tag found
lgaiswitch_errors_in_204.xml nach /root/rranew//lgaiswitch_errors_in_204.rrd importiert
ERROR: No <xff> tag found
lgaiswitch_errors_in_205.xml nach /root/rranew//lgaiswitch_errors_in_205.rrd importiert
ERROR: No <xff> tag found
lgaiswitch_errors_in_206.xml nach /root/rranew//lgaiswitch_errors_in_206.rrd importiert
ERROR: No <xff> tag found
Thanks.
Errors during RRD restore.
Moderators: Developers, Moderators
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
This a a pure rrdtool issue, for sure.
Error message suggests, that the dump is wrong and does not contain information about the xff parameter required for all rrd files. Please verify the rrdtool versions both for dumping and restoring the rrd files. You may get more precise answers at the rrdtool-users mailinglist
Reinhard
Error message suggests, that the dump is wrong and does not contain information about the xff parameter required for all rrd files. Please verify the rrdtool versions both for dumping and restoring the rrd files. You may get more precise answers at the rrdtool-users mailinglist
Reinhard
-
- Posts: 14
- Joined: Thu May 10, 2007 7:14 pm
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
There should be no need for them to be identical. Apart from bugs in one or the other version
A year ago or the like I went into a quite similar issue that was resolved by updating to a newer rrdtool on the restore side. Help was provided by Alex van den Bogaerdt, a really good rrdtool author
Reinhard
A year ago or the like I went into a quite similar issue that was resolved by updating to a newer rrdtool on the restore side. Help was provided by Alex van den Bogaerdt, a really good rrdtool author
Reinhard
Who is online
Users browsing this forum: No registered users and 8 guests