Unable to import XML templates

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

Moderators: Developers, Moderators

Post Reply
cactiguest
Posts: 1
Joined: Mon Nov 20, 2006 4:11 pm

Unable to import XML templates

Post by cactiguest »

Hello all,

I am trying to import XML templates on an older production server and I am unable to do so. I have searched this forum several times for solutions and cannot find any.

My question: how can I find out what this is failing? I cannot find anything in the logs I have viewd to give me a clue. Where else can I look?

I am able to successfully export templates, but not import them.

Here is some information about the system I am running:
- Red Hat Linux 7.2
- PHP v 4.1.2
- MySQL 3.23.58
- Apache 1.3.27
- Cacti 0.8.6i

I had this import problem with the 0.8.6d installation I inherited. I figured there was a Cacti problem so I downloaded the 0.8.6i tarball and did a clean install. During the installation I upgraded the MySQL db being used with the 0.8.6d installation I moved from. Everything else seems to be working.

Here are the PHP configure options:
'./configure' 'i386-redhat-linux' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--prefix=/usr' '--with-config-file-path=/etc' '--enable-force-cgi-redirect' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--with-db3' '--with-curl' '--with-dom=/usr' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd' '--enable-gd-native-ttf' '--with-ttf' '--with-gdbm' '--with-gettext' '--with-ncurses' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-mm' '--with-openssl' '--with-png' '--with-pspell' '--with-regex=system' '--with-xml' '--with-expat-dir=/usr' '--with-zlib' '--with-layout=GNU' '--enable-bcmath' '--enable-debugger' '--enable-exif' '--enable-ftp' '--with-pear=/usr/share/pear' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-discard-path' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--without-oci8' '--with-imap=shared' '--with-imap-ssl' '--with-kerberos=/usr/kerberos' '--with-ldap=shared' '--with-mysql=shared,/usr' '--with-pgsql=shared' '--with-snmp=shared,/usr' '--with-snmp=shared' '--enable-ucd-snmp-hack' '--with-unixODBC=shared' '--enable-memory-limit' '--enable-bcmath' '--enable-shmop' '--enable-versioning' '--enable-calendar' '--enable-dbx' '--enable-dio' '--enable-mbstring' '--enable-mbstr-enc-trans' '--with-apxs=/usr/sbin/apxs'

In php.ini I have set the following memory limit:
memory_limit = 64M;

I cannot find anything to indicate a problem in the log files for PHP, Apache or MySQL. The Cacti log file contains a number of errors from the poller, but nothing with timestampts from the moments I try importing templates. The typical errors I do see look like the following:

11/20/2006 03:16:32 PM - CMDPHP: Poller[0] Host[23] DS[236] WARNING: Result from SNMP not valid. Partial Result:

11/20/2006 03:16:36 PM - CMDPHP: Poller[0] Host[0] DS[302] WARNING: Result from CMD not valid. Partial Result: <br>

Any help would be appreciated - thanks!
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please check

Code: Select all

grep upload /etc/php.ini
; Whether to allow HTTP file uploads.
file_uploads = On
; Temporary directory for HTTP uploaded files (will use system default if not
;upload_tmp_dir =
; Maximum allowed size for uploaded files.
upload_max_filesize = 2M
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests