Templates not importing

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
CourtLukens
Posts: 4
Joined: Fri Mar 03, 2006 10:42 am

Templates not importing

Post by CourtLukens »

I am having problems importing templates into Cacti via the web interface, in that the templates don't seem to import at all. Whether I "Browse" to the xml, or I paste it directly, I never see the template show up in my list. Am I supposed to get a confirmation when the template is successfully imported?

Cacti version 0.8.6h
MySQL version 3.23.54

I apologize if the information given is a bit vague. Any suggestions are very welcome.
Last edited by CourtLukens on Wed Jul 04, 2018 11:44 pm, edited 1 time in total.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

I always tried importing from files, and this worked. May you please check this?
Reinhard
CourtLukens
Posts: 4
Joined: Fri Mar 03, 2006 10:42 am

Post by CourtLukens »

That's the first method I tried. "Import Template from a local file." After clicking Browse, selecting the xml file, and then clicking Save, the page just seems to refresh and I don't see the new template anywhere.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

It should definitively show a little text at the very top of the page
Reinhard
CourtLukens
Posts: 4
Joined: Fri Mar 03, 2006 10:42 am

Post by CourtLukens »

I thought so. Could this be a permissions problem on one of the directories? Or some config setting I'm missing?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

I'm not aware of perms or settings for that. But wait, this is XML, isn't it? Please check to have sth like php XML support activated. From phpinfo()

Code: Select all

xml
XML Support 	active
XML Namespace Support 	active
EXPAT Version 	expat_1.95.7 
and

Code: Select all

Configure Command 	 './configure' '--build=i386-redhat-linux' ... '--with-xml' '--with-expat-dir=/usr' '--with-dom=shared,/usr' '--with-dom-xslt=/usr' '--with-dom-exslt=/usr' '--with-xmlrpc=shared' ...
hth
Reinhard
CourtLukens
Posts: 4
Joined: Fri Mar 03, 2006 10:42 am

Post by CourtLukens »

I'll check on that, but I think one of the problems is that we're running an older version of PHP (version 4.1.2). I'm going to try and update PHP (might as well update our MySQL as well) and see if that helps.
Last edited by CourtLukens on Wed Jul 04, 2018 11:45 pm, edited 1 time in total.
voron
Posts: 3
Joined: Thu Apr 20, 2006 10:23 am

Post by voron »

I have the same problem on cacti-0.8.6h_p20060108-r2
php-4.4.0-r9
mysql-4.1.14-r1
apache-2.0.55-r1
from phpinfo();
'./configure' '--prefix=/usr' '--host=x86_64-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--with-apxs2=/usr/sbin/apxs2' '--disable-cli' '--without-pear' '--without-tsrm-pthreads' '--with-ndbm=/usr' '--with-db4=/usr' '--with-mcrypt=/usr' '--with-mhash=/usr' '--without-ming' '--without-sybase' '--with-gdbm=/usr' '--without-java' '--without-mcal' '--without-unixODBC' '--without-pgsql' '--with-snmp=/usr' '--enable-ucd-snmp-hack' '--with-gmp' '--without-mssql' '--without-crack' '--without-pdflib' '--with-gd' '--enable-gd-native-ttf' '--with-png=/usr' '--with-png-dir=/usr' '--with-jpeg=/usr' '--with-jpeg-dir=/usr' '--enable-exif' '--with-tiff=/usr' '--with-tiff-dir=/usr' '--with-mysql=/usr' '--with-mysql-sock=/var/run/mysqld/mysqld.sock' '--with-freetype-dir=/usr' '--with-ttf=/usr' '--with-t1lib=/usr' '--with-gettext' '--with-pspell=/usr' '--with-openssl=/usr' '--without-imap' '--without-ldap' '--with-dom=/usr' '--with-dom-xslt=/usr' '--with-dom-exslt=/usr' '--without-kerberos' '--with-pam' '--enable-memory-limit' '--disable-ipv6' '--without-yaz' '--disable-debug' '--without-curl' '--enable-dbx' '--with-zlib=/usr' '--with-zlib-dir=/usr' '--with-sablot=/usr' '--enable-xslt' '--with-xslt-sablot' '--with-xmlrpc' '--enable-wddx' '--with-xml' '--enable-mbstring=all' '--enable-mbregex' '--with-bz2=/usr' '--with-cdb' '--enable-pcntl' '--enable-bcmath' '--enable-calendar' '--enable-dbase' '--enable-filepro' '--enable-ftp' '--with-mime-magic=/usr/share/misc/file/magic.mime' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--with-iconv' '--enable-shmop' '--enable-dio' '--enable-yp' '--without-ncurses' '--without-readline' '--enable-inline-optimization' '--enable-track-vars' '--enable-trans-sid' '--enable-versioning' '--with-config-file-path=/etc/php/apache2-php4' '--libdir=/usr/lib64/php' '--without-pear' '--build=x86_64-pc-linux-gnu'
XML Support active
XML Namespace Support active
EXPAT Version 1.95.6
I've looked in apache error.log and
Allowed memory size of 8388608 bytes exhausted (tried to allocate 128 bytes)
I've changed memory_limit in php.ini to 32M, apache restart and import works fine now :D
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

voron wrote:I've looked in apache error.log and
Allowed memory size of 8388608 bytes exhausted (tried to allocate 128 bytes)
I've changed memory_limit in php.ini to 32M, apache restart and import works fine now :D
Thanks for your help. Memory limit should be set to 64 MB. I didn't recognize this problem to be related to some memory shortage
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest