google-code-export / mysql-cacti-templates

Automatically exported from code.google.com/p/mysql-cacti-templates
GNU General Public License v2.0
1 stars 0 forks source link

Importing of XML fails... #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
 Import of XML fails. I get the following error: Error: XML: Hash version 
does not exist.

What version of the product are you using? On what operating system?
CentOS release 5 (Final), cacti 0.8.6i, i have the latest revision 34

Please provide any additional information below.

Original issue reported on code.google.com by MeisterD...@gmail.com on 6 May 2008 at 6:04

GoogleCodeExporter commented 9 years ago
Can you give any more information?

I am aware of one place where the templates have hash identifiers that don't 
have a
version and object, but I was mimicking Cacti's output on that.  Perhaps Cacti 
has
fixed their bug, and now they are not generating/accepting invalid 
export/import anymore.

Original comment by baron.schwartz on 7 May 2008 at 12:21

GoogleCodeExporter commented 9 years ago
Try it now.  There is a new download in the Downloads tab.

Original comment by baron.schwartz on 1 Jun 2008 at 4:46

GoogleCodeExporter commented 9 years ago

i notice there are two xml files in the 1.0.0 release bundle (0.8.61 and 0.8.6j)

i tried both of these and i'm still seeing the "hash version does not exist" 
error

tried the make-template route and got the same results

running cacti 0.8.6h on ubuntu 6.06 x64

Original comment by boo...@gmail.com on 1 Jun 2008 at 5:59

GoogleCodeExporter commented 9 years ago
i was able to get the template to import in a cacti 0.8.7b environment, so this 
is 
probably a case of a newer cacti can import and older version template, but not 
the 
reverse

Original comment by boo...@gmail.com on 1 Jun 2008 at 7:01

GoogleCodeExporter commented 9 years ago
Right.  If you use make-template with your Cacti version in --cactiver you 
should be
able to import.

Original comment by baron.schwartz on 1 Jun 2008 at 11:17

GoogleCodeExporter commented 9 years ago
looks like the --cactiver option might have some problems

the --help from make template seems to imply that the --cactiver needs no 
value, but 
running:
perl make-template.pl --cactiver mysql_definitions > mytemplate.xml

throws an error "you must specify a FILE to parse"

grepping for cactiver in the script you find "cactiver=s" and running with --
cactiver=s will at least yield output, but it again fails the XML HASH

Original comment by boo...@gmail.com on 3 Jun 2008 at 7:57

GoogleCodeExporter commented 9 years ago

i was able to get the following to work with 0.8.6h

perl make-template.pl --cactiver=0.8.6h mysql_definitions > 
mysql-cacti-0.8.6h.xml

so it is possible to get a template working even under an older version

Original comment by boo...@gmail.com on 3 Jun 2008 at 8:03

GoogleCodeExporter commented 9 years ago
I just added a little more code to check for the presence and validity of the 
version.

Original comment by baron.schwartz on 3 Jun 2008 at 11:11