Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Wed Jan 23, 2019 3:09 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Template import issue
PostPosted: Wed Sep 19, 2018 11:26 am 
Offline

Joined: Fri May 24, 2013 11:24 am
Posts: 14
So I just installed a new cacti server with the current version of cacti (1.1.38) on Redhat v7.5 on a VMware host
Upon attempting to import graph templates with the most recent 1.x templates from the official template page, it doesn't work. As in, no graph template appears in cacti. A quick check in /opt/cacti/cacti_log/cacti.log I see the following after each attempt:

09/19/2018 09:55:24 - IMPORT parse_xml_hash ERROR wrong hash format for hash: info

Yet when I download the older 0.8x versions of the graph templates, they install successfully.

Can anybody help me with this, I'm stumped.

Thanks!


Top
 Profile  
 
 Post subject: Re: Template import issue
PostPosted: Wed Sep 19, 2018 11:53 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 1944
use import_package.php in the cli folder with the packages in install/templates/

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Template import issue
PostPosted: Wed Sep 19, 2018 1:19 pm 
Offline

Joined: Fri May 24, 2013 11:24 am
Posts: 14
netniV wrote:
use import_package.php in the cli folder with the packages in install/templates/


Thanks for the response, I appreciate it.

I saw that on info on one template page and tried to import that way but had an issue. When I looked for the folder and/or filename here's what I found:

[[email protected] ~]# locate import_package.php
/var/lib/docker/overlay2/3284b463eaae02075e25b3f0f69e0f4949f9c1f9cf629fef549cad32b36d2d55/diff/opt/cacti/cli/import_package.php
/var/lib/docker/overlay2/67d765c3a3581db8d374ede2066b18afa70a2340e069be475900c45d52e1f786/diff/opt/cacti/cli/import_package.php
[[email protected] ~]# find / -name import_package.php
/var/lib/docker/overlay2/3284b463eaae02075e25b3f0f69e0f4949f9c1f9cf629fef549cad32b36d2d55/diff/opt/cacti/cli/import_package.php
/var/lib/docker/overlay2/67d765c3a3581db8d374ede2066b18afa70a2340e069be475900c45d52e1f786/diff/opt/cacti/cli/import_package.php
/var/lib/docker/overlay2/8563c81e81eeeba8d9181684bdf8f05cb377f988554a79f298f2c0f770eca4a1/merged/opt/cacti/cli/import_package.php
[[email protected] ~]#

(I forgot to mention this is a "docker" image I'm using. I'm not sure if it makes a difference but I was advised to use this by one of our linux administrators and he helped me get it up and running.)

So anyway, I now I have two more questions:

1) Which "cli" folder do I run the import_package.php in?
2) What's the exact command I need to use? (I checked and none of those php's are executable so I'm not sure how to invoke the command)


Top
 Profile  
 
 Post subject: Re: Template import issue
PostPosted: Wed Sep 19, 2018 2:06 pm 
Offline

Joined: Fri May 24, 2013 11:24 am
Posts: 14
netniV wrote:
use import_package.php in the cli folder with the packages in install/templates/


I just got on the phone with my admin and he told me he already tried this. So, what next?


Top
 Profile  
 
 Post subject: Re: Template import issue
PostPosted: Wed Sep 19, 2018 2:19 pm 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 1944
What was the outcome of using the import_package with the packages in the install/templates folder?

Can you post the technical support info from your cacti too? Doubt there will be anything wrong with it, but it's always worth checking.

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Template import issue
PostPosted: Wed Sep 19, 2018 3:04 pm 
Offline

Joined: Fri May 24, 2013 11:24 am
Posts: 14
netniV wrote:
What was the outcome of using the import_package with the packages in the install/templates folder?

Can you post the technical support info from your cacti too? Doubt there will be anything wrong with it, but it's always worth checking.


What "technical support info" are you looking for exactly? Also, just to be safe, where can I find it?


Top
 Profile  
 
 Post subject: Re: Template import issue
PostPosted: Fri Sep 21, 2018 2:01 pm 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 1944
Under the System Utilities.

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 12 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group