Hash version does not exist

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
unkilbeeg
Posts: 2
Joined: Fri Nov 14, 2008 5:52 pm

Hash version does not exist

Post by unkilbeeg »

I've been trying to set up the apcupsd script, but when I try to import the template files, I get the message

Code: Select all

Error:XML: Hash version does not exist.
From what I see on the forums, it sounds like these templates are version specific. Is it possible to extract the pertinent information to build something that works with a different version?

I've a long standing policy of sticking with the version of whatever software package I'm using that is being handled by the package manager of the distro I'm using. Building from source is fine, but once you install a few packages like that, updates can become a management nightmare. That way lies madness. Debian Etch delivers 0.8.6i, so that's what i have to deal with.

The script itself works great, by the way. :)
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Basically means the template was exported with a newer version of Cacti than you're using.

No, there is no easy way to reverse engineer it to work with older code. This is because between versions, the format can change, which won't work with older versions, etc.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

Besides, it's PHP. There is no "build from source". You unpack the tar.

I can understand doing that for PHP itself, or mysql or whatever, but this really is just a tarball. Of course, now you've gone the package route, especially with Debian, who knows what 'tweaks' they've made over the original tarball.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
unkilbeeg
Posts: 2
Joined: Fri Nov 14, 2008 5:52 pm

Post by unkilbeeg »

Good point. You talked me into it, although you're right, Debian organized the config files differently. I ended up just starting from scratch. There still are potential issues with package upgrades to, say, php or snmp or something similar, causing some issue with cacti, that maybe sticking with the cacti package might prevent, but that's probably a minor risk.

I do think that tying a data template format too tightly to a specific version of the software is an architectural limitation. Right now, though, I can live with it.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest