Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Import/Export template doesn't work on Cacti 0.8.6b

 
Post new topic   Reply to topic    Cacti Forum Index -> Addons for Cacti
Author Message
LGA
Guest





PostPosted: Fri Nov 12, 2004 4:20 am    Post subject: Import/Export template doesn't work on Cacti 0.8.6b Reply with quote

Hi,

I've the same problem described below. Can somebody help me please ?

THks.

Lionel Gavage



rico
Guest


PostPosted: Thu Feb 19, 2004 4:25 am Post subject: Import templates issue Reply with quote
Hello, I hope someone could help me, because I realy don't unterstand why it doesn't work !

I try to monitoring squid with cacti so I would use Squidstats but I dont know how importing templates works :

- I put webcache_squid_median.xml, webcache_squid_core.xml and cacti_host_template_webcache_squid_server_snmp.xml in <cacti_path>/resource/snmp_queries/

-Then I guess I have to import the host template in cacti but in the "Import Template" page, when I import the template file (click on save), nothing happend ! (no new host template no message)

Can somebody tell me what's going wrong ?
Back to top
hgd
Guest





PostPosted: Sun Nov 14, 2004 7:43 am    Post subject: Re: Import/Export template doesn't work on Cacti 0.8.6b Reply with quote

LGA wrote:
Hi,

I've the same problem described below. Can somebody help me please ?

THks.

Lionel Gavage



rico
Guest


PostPosted: Thu Feb 19, 2004 4:25 am Post subject: Import templates issue Reply with quote
Hello, I hope someone could help me, because I realy don't unterstand why it doesn't work !

I try to monitoring squid with cacti so I would use Squidstats but I dont know how importing templates works :

- I put webcache_squid_median.xml, webcache_squid_core.xml and cacti_host_template_webcache_squid_server_snmp.xml in <cacti_path>/resource/snmp_queries/

-Then I guess I have to import the host template in cacti but in the "Import Template" page, when I import the template file (click on save), nothing happend ! (no new host template no message)

Can somebody tell me what's going wrong ?


I have selfsame problem with SHOUTCAST addons.
Back to top
LGA
Guest





PostPosted: Mon Nov 15, 2004 1:39 am    Post subject: Reply with quote

Hi,

Did you find a solution for the import template ?


Lionel.
Back to top
raX
Lead Developer


Joined: 13 Oct 2001
Posts: 2234
Location: Carlisle, PA

PostPosted: Wed Nov 17, 2004 6:11 pm    Post subject: Reply with quote

For any user that is experiencing this issue, download and install the following patch in your Cacti directory:

Code:
wget http://www.cacti.net/downloads/patches/0.8.6b/xml_import_error_reporting.patch
patch -p1 < xml_import_error_reporting.patch


or use the following pre-patched lib/import.php and include/config_arrays.php files against 0.8.6b:

http://www.cacti.net/downloads/patches/0.8.6b/pre-patched/import.php
http://www.cacti.net/downloads/patches/0.8.6b/pre-patched/config_arrays.php

Instead of getting a blank page when trying to import the XML, you should get an error of some sort. Please report the error that you receive along with your current Cacti version and a copy of the XML that you are trying to import.

-Ian
Back to top
LGA
Guest





PostPosted: Thu Nov 18, 2004 12:04 am    Post subject: Reply with quote

Hi,

I copied the prepatch of lib/import.php and include/config_arrays.php but I get always a blank page when trying to import the XML with no error message

I try to import this template from this forum: http://forums.cacti.net/download.php?id=63

Thks.

Lionel Gavage
Back to top
raX
Lead Developer


Joined: 13 Oct 2001
Posts: 2234
Location: Carlisle, PA

PostPosted: Sat Nov 20, 2004 10:46 am    Post subject: Reply with quote

I had this exact problem too on my desktop machine. It turns out that 'file_uploads' in my php.ini file was set to 'Off'. I'm not sure how it got this way, but you may want to check in yours as well.

-Ian
Back to top
Guest






PostPosted: Sat Nov 20, 2004 2:39 pm    Post subject: Reply with quote

Hi,

In fact, 'file_uploads' in my php.ini was set to "Off". Now the import template works fine

Thks a lot !

Lionel Gavage.
Back to top
Guest






PostPosted: Sun Dec 12, 2004 3:48 pm    Post subject: Reply with quote

I'm running Cacti v0.8.5a (Debian) and when I go to import templates and attempt to import something, the page just reloads without any errors and the import doesn't really succeed. Any ideas on what could be causing this problem? I've already checked the php.ini for file_uploads and it is set to On.
Back to top
raX
Lead Developer


Joined: 13 Oct 2001
Posts: 2234
Location: Carlisle, PA

PostPosted: Sun Dec 19, 2004 11:32 pm    Post subject: Reply with quote

Anonymous wrote:
I'm running Cacti v0.8.5a (Debian) and when I go to import templates and attempt to import something, the page just reloads without any errors and the import doesn't really succeed. Any ideas on what could be causing this problem? I've already checked the php.ini for file_uploads and it is set to On.


My guess is that you are trying to import XML generated with a newer version of Cacti into your older 0.8.5a version. Currently, this is not supported for potential compatibility conflicts. I created a patch against version 0.8.6b which should tell you exactly what is wrong instead of just displaying an empty page. I realize that you are running 0.8.5a, but it should still apply ok. Just do the following in your Cacti directory:

Code:
wget http://www.cacti.net/downloads/patches/0.8.6b/xml_import_error_reporting.patch
patch -p1 < xml_import_error_reporting.patch


-Ian
Back to top
cjblade54



Joined: 04 Mar 2008
Posts: 24

PostPosted: Fri Mar 14, 2008 1:25 pm    Post subject: Reply with quote

I am having trouble with the Import Template as well. I am currently using 0.8.7b and have tried everything in this thread and nothing has improved.
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 11722
Location: Muenster, Germany

PostPosted: Sat Mar 15, 2008 1:00 pm    Post subject: Reply with quote

cjblade54 wrote:
I am having trouble with the Import Template as well. I am currently using 0.8.7b and have tried everything in this thread and nothing has improved.
Please post error messages and your exact steps as a new thread to the General Forum
Reinhard
Back to top
megyo



Joined: 26 Aug 2008
Posts: 1
Location: Budapest

PostPosted: Tue Aug 26, 2008 6:30 am    Post subject: Reply with quote

Same problem

Found in apache error.log:

[client 10.82.160.32] PHP Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 24 bytes) in /home/
cacti/cacti-0.8.6j/lib/xml.php on line 34, referer: http://remus.khb.hu/cacti/templates_import.php


so set in templates_import.php:

ini_set("memory_limit","12M");

or in php.ini

memory_limit = 12M


I hope it helps.
BR













[/quote]
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Addons for Cacti All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group