Dumb question about templates

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

Moderators: Developers, Moderators

Post Reply
swannie2
Posts: 2
Joined: Wed Aug 03, 2022 4:24 pm

Dumb question about templates

Post by swannie2 »

Hi all -
I've used Cacti before, but it's probably been at least 15+ years since I last setup a Cacti server and I'm running into an issue importing templates. From what I gather, at some point in the version history of Cacti the import template function started doing a version check/hash to ensure that a template is compatible with whatever version of cacti you're using. No problem, seems like a reasonable feature. The problem I'm running into now is that many of the templates I'm trying to load off of this forum don't work because the template is missing the appropriate hash or other XML data. Google and forum searches seem to be failing me in finding a solution, so I'm sort of stuck and I think I need a push in the right direction on solving this.

Is there a method to convert these older templates into the new format, or is there a method where by I could edit the XML to add whatever fields are required by the new version of Cacti?

Thanks in advance!
User avatar
camerabob
Cacti User
Posts: 386
Joined: Fri Feb 10, 2017 2:45 pm
Location: Long Island, New York, USA
Contact:

Re: Dumb question about templates

Post by camerabob »

A backdoor/MacGyver method would be to spin up a version 8.x server, import your templates and upgrade that install. Once complete, export those templates and bring them into your prod server.
Prod: Cacti 1.2.15 @ CentOS Linux release 7.9.2009 (Core) & PHP 5.4.16-48.el7
Maint @ 1.2
Monitor @ 2.3.6
Thold @ 1.2.4

Temp: Cacti 1.2.3 @ CentOS Linux release 7.9.2009 (Core) & PHP 5.4.16-48.el7
Flowview @ 2.1
Mactrack @ 4.2
Maint @ 1.2
Monitor @ 2.3.6
Router Configs @ 1.3.4
Syslog Monitoring @ 2.1
Thold @ 1.2.4
swannie2
Posts: 2
Joined: Wed Aug 03, 2022 4:24 pm

Re: Dumb question about templates

Post by swannie2 »

I'm not sure if that would be quicker than just re-doing them by hand! :)
camerabob wrote: Thu Aug 04, 2022 11:45 am A backdoor/MacGyver method would be to spin up a version 8.x server, import your templates and upgrade that install. Once complete, export those templates and bring them into your prod server.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Dumb question about templates

Post by TheWitness »

Swannie2,

What version of Cacti are you using? Seems like you are technical. So, do me a favor. Upgrade to the 1.2.x branch of Cacti, and attempt to import the Templates there, and if you continue to encounter problems, open a tracking Ticket on GitHub so we can correct the hash processing.

This all goes back to an attempt to correct a dependency problem where users had set up multiple snmp_port's in their Data Input methods, and that problem spread like a virus. So, there was a correction made to Cacti that actually did not work as expected. The bug has been fixed as of at least one point release ago, but better use 1.2.x as I don't have unlimited time to do regression testing on all the releases out there.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest