Menu
Index

Contact
Atom Feed
Comments Atom Feed

Similar Articles

2011-10-04 10:31
ICMP Connectivity Monitoring with Cacti
2012-10-16 20:07
iostat on Cacti via SNMP
2011-08-24 19:10
TEMPer under Linux (perl) with Cacti
2012-10-16 19:23
vmstat on Cacti via SNMP
2011-06-25 12:33
Dovecot stats on Cacti (via SNMP)

Recent Articles

2019-07-28 16:35
git http with Nginx via Flask wsgi application (git4nginx)
2018-05-15 16:48
Raspberry Pi Camera, IR Lights and more
2017-04-23 14:21
Raspberry Pi SD Card Test
2017-04-07 10:54
DNS Firewall (blackhole malicious, like Pi-hole) with bind9
2017-03-28 13:07
Kubernetes to learn Part 4

Glen Pitt-Pladdy :: Blog

With my Cacti templates I often get people having problems trying to load them into older versions. Here's hack for forward compatibility that may help.

One thing that comes up often is the people want to use my templates with older versions of Cacti. When this happens you will likely get an error like "Cacti version does not exist".

Fortunately this can be easily cured by adding in the version the template was made under into the Cacti file global_arrays.php and/or config_array.php as follows:

$hash_version_codes = array(
    "0.8.4"  => "0000",
    "0.8.5"  => "0001",
    "0.8.5a" => "0002",
    "0.8.6"  => "0003",
    "0.8.6a" => "0004",
    "0.8.6b" => "0005",
    "0.8.6c" => "0006",
    "0.8.6d" => "0007",
    "0.8.6e" => "0008",
    "0.8.6f" => "0009",
    "0.8.6g" => "0010",
    "0.8.6h" => "0011",
    "0.8.6i" => "0012",
    "0.8.6j" => "0013",
    "0.8.7"  => "0014",
    "0.8.7a" => "0015",
    "0.8.7b" => "0016",
    "0.8.7c" => "0017",
    "0.8.7d" => "0018",
    "0.8.7e" => "0019",
    "0.8.7f" => "0020",
    "0.8.7g" => "0021",
    "0.8.7h" => "0022",
    "0.8.7i" => "0023",
    "0.8.8"  => "0024",
    "0.8.8a" => "0024"
    );

I will keep this article updated whenever I discover new versions that need adding.

Also note that this will not necessarily work, especially if there is a big difference between your Cacti version and the version the template was created with.

Comments:

nA ni sivAm Image  2012-03-05 12:10 :: nA ni sivAm

okay. I tried this- updated the global_arrays.php.... now I get a different error:

"Error: XML: Generated with a newer version of Cacti."

Earlier i got this one- "Error: XML: Hash version does not exist." Can you please help me matey!

nA ni sivAm Image  2012-03-06 10:30 :: nA ni sivAm

The above issue is becos of using a lower version of Cacti. The best option is to upgrade. However, if anybody wants to try importing, the trick is to change the hash numbers the numbers from the 3rd to 6th pos represent the version that the cacti supports min. If you change it manually it will be imported. But whether it will work or not will be dependent on the features used in that template! good luck matey!

Jose Image  2016-04-13 13:45 :: Jose

I use 0.8.7 version, this is not an old one.




Note: Identity details will be stored in a cookie. Posts may not appear immediately