|
|
| Author |
Message |
LGA Guest
|
Posted: Fri Nov 12, 2004 4:20 am Post subject: Import/Export template doesn't work on Cacti 0.8.6b |
|
|
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
|
Posted: Sun Nov 14, 2004 7:43 am Post subject: Re: Import/Export template doesn't work on Cacti 0.8.6b |
|
|
| 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
|
Posted: Mon Nov 15, 2004 1:39 am Post subject: |
|
|
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
|
Posted: Wed Nov 17, 2004 6:11 pm Post subject: |
|
|
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
|
Posted: Thu Nov 18, 2004 12:04 am Post subject: |
|
|
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
|
Posted: Sat Nov 20, 2004 10:46 am Post subject: |
|
|
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
|
Posted: Sat Nov 20, 2004 2:39 pm Post subject: |
|
|
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
|
Posted: Sun Dec 12, 2004 3:48 pm Post subject: |
|
|
| 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
|
Posted: Sun Dec 19, 2004 11:32 pm Post subject: |
|
|
| 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: 27
|
Posted: Fri Mar 14, 2008 1:25 pm Post subject: |
|
|
| 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: 12295 Location: Muenster, Germany
|
Posted: Sat Mar 15, 2008 1:00 pm Post subject: |
|
|
| 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
|
Posted: Tue Aug 26, 2008 6:30 am Post subject: |
|
|
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 |
|
 |
|