Ad Widget

Collapse

Template Import Problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • blazergst
    Junior Member
    • Nov 2007
    • 10

    #1

    Template Import Problem

    I just finished loading Zabbix 2.0.4 on a new test server. Everything appears to be working correctly except when I try to import some of my templates from my production 1.8.1 server or my production 2.0 appliance at a remote office.

    I get the following error in my httpd-error.log after each attempt at import. I also get a blank gray page with the nav bar at the top with nothing else. I have tried various data sets and options from the export without success.

    This is most likely a FreeBSD/Apache/PHP-XML issue deeply rooted in user error, I just can't get it. Any help would be greatly appreciated.

    [Wed Dec 26 17:04:30 2012] [error] [client 10.13.12.82] PHP Fatal error: Call to undefined function simplexml_load_string() in /usr/local/www/apache22/data/zabbix/include/classes/import/readers/CXmlImportReader.php on line 35, referer: https://zabbix-test.local/zabbix/con...2af731b6e32ae5

    FreeBSD 9.0-RELEASE amd64

    pkg_info:
    apache22-2.2.23 Version 2.2.x of Apache web server with prefork MPM.
    apr-1.4.6.1.4.1_1 Apache Portability Library
    autoconf-2.69 Automatically configure source code on many Un*x platforms
    autoconf-wrapper-20101119 Wrapper script for GNU autoconf
    automake-1.12.4 GNU Standards-compliant Makefile generator
    automake-wrapper-20101119 Wrapper script for GNU automake
    bash-4.1.11 The GNU Project's Bourne Again SHell
    bigreqsproto-1.1.1 BigReqs extension headers
    bison-2.4.3,1 A parser generator from FSF, (mostly) compatible with Yacc
    ca_root_nss-3.14 The root certificate bundle from the Mozilla Project
    cmake-2.8.9 A cross-platform Makefile generator
    cmake-modules-2.8.9 Modules and Templates for CMake
    curl-7.24.0_1 Non-interactive tool to get files from FTP, GOPHER, HTTP(S)
    db42-4.2.52_5 The Berkeley DB package, revision 4.2
    expat-2.0.1_2 XML 1.0 parser written in C
    fontconfig-2.9.0,1 An XML-based font configuration API for X Windows
    fping-3.4 Quickly ping N hosts w/o flooding the network
    freetype2-2.4.9_1 A free and portable TrueType font rendering engine
    gd-2.0.35_8,1 A graphics library for fast creation of images
    gdbm-1.9.1 The GNU database manager
    gettext-0.18.1.1 GNU gettext package
    gmake-3.82_1 GNU version of 'make' utility
    gmp-5.0.5 A free library for arbitrary precision arithmetic
    gnutls-2.12.18_1 GNU Transport Layer Security library
    help2man-1.40.12 Automatically generating simple manual pages from program o
    iksemel-1.4_3 XML parser library mainly designed for Jabber applications
    inputproto-2.0.2 Input extension headers
    jpeg-8_3 IJG's jpeg compression utilities
    kbproto-1.0.5 KB extension headers
    libICE-1.0.7,1 Inter Client Exchange library for X11
    libSM-1.2.0,1 Session Management library for X11
    libX11-1.4.4,1 X11 library
    libXau-1.0.6 Authentication Protocol library for X11
    libXaw-1.0.9,2 X Athena Widgets library
    libXdmcp-1.1.0 X Display Manager Control Protocol library
    libXext-1.3.0_1,1 X11 Extension library
    libXmu-1.1.0,1 X Miscellaneous Utilities libraries
    libXp-1.0.1,1 X print library
    libXpm-3.5.9 X Pixmap library
    libXt-1.1.1,1 X Toolkit library
    libcheck-0.9.8 A unit test framework for C
    libgcrypt-1.5.0_1 General purpose crypto library based on code used in GnuPG
    libgpg-error-1.10 Common error values for all GnuPG components
    libiconv-1.13.1_1 A character set conversion library
    libpthread-stubs-0.3_3 This library provides weak aliases for pthread functions
    libssh2-1.4.2,2 A library implementing the SSH2 protocol
    libtool-2.4_1 Generic shared library support script
    libxcb-1.7 The X protocol C-language Binding (XCB) library
    libxml2-2.7.8_5 XML parser library for GNOME
    libxslt-1.1.26_3 The XSLT C library for GNOME
    m4-1.4.16,1 GNU m4
    mysql-client-5.5.28 Multithreaded SQL database (client)
    net-snmp-5.7.2 An extendable SNMP implementation
    nettle-2.5 A low-level cryptographic library
    oniguruma-4.7.1 A BSDL Regular Expressions library compatible with POSIX/GN
    p11-kit-0.14 Library for loading and enumerating of PKCS#11 modules
    p5-Locale-gettext-1.05_3 Message handling functions
    pcre-8.31_1 Perl Compatible Regular Expressions library
    perl-5.14.2_2 Practical Extraction and Report Language
    php53-5.3.18 PHP Scripting Language
    php53-bcmath-5.3.18 The bcmath shared extension for php
    php53-ctype-5.3.18 The ctype shared extension for php
    php53-dom-5.3.18 The dom shared extension for php
    php53-gd-5.3.18 The gd shared extension for php
    php53-gettext-5.3.18 The gettext shared extension for php
    php53-mbstring-5.3.18 The mbstring shared extension for php
    php53-mysql-5.3.18 The mysql shared extension for php
    php53-session-5.3.18 The session shared extension for php
    php53-sockets-5.3.18 The sockets shared extension for php
    php53-xml-5.3.18 The xml shared extension for php
    php53-xmlreader-5.3.18 The xmlreader shared extension for php
    php53-xmlwriter-5.3.18 The xmlwriter shared extension for php
    pkgconf-0.8.9 Utility to help to configure compiler and linker flags
    png-1.5.12 Library for manipulating PNG images
    printproto-1.0.5 Print extension headers
    python27-2.7.3_3 An interpreted object-oriented programming language
    t1lib-5.1.2_1,1 A Type 1 Rasterizer Library for UNIX/X11
    xcb-proto-1.7.1 The X protocol C-language Binding (XCB) protocol
    xcmiscproto-1.2.1 XCMisc extension headers
    xextproto-7.2.0 XExt extension headers
    xf86bigfontproto-1.2.0 XFree86-Bigfont extension headers
    xorg-macros-1.16.1 X.Org development aclocal macros
    xproto-7.0.22 X11 protocol headers
    xtrans-1.2.6 Abstract network code for X

    from phpinfo:
    './configure' '--with-layout=GNU' '--localstatedir=/var' '--with-config-file-scan-dir=/usr/local/etc/php' '--disable-all' '--enable-libxml' '--enable-mysqlnd' '--with-libxml-dir=/usr/local' '--with-pcre-regex=/usr/local' '--with-zlib-dir=/usr' '--program-prefix=' '--with-apxs2=/usr/local/sbin/apxs' '--with-regex=php' '--with-zend-vm=CALL' '--prefix=/usr/local' '--mandir=/usr/local/man' '--infodir=/usr/local/info/' '--build=amd64-portbld-freebsd9.0'

    DOM/XML enabled
    DOM/XML API Version 20031129
    libxml Version 2.7.8
    HTML Support enabled
    XPath Support enabled
    XPointer Support enabled
    Schema Support enabled
    RelaxNG Support enabled

    libXML support active
    libXML Compiled Version 2.7.8
    libXML Loaded Version 20708
    libXML streams enabled
    XML Support active
    XML Namespace Support active
    libxml2 Version 2.7.8

    XMLReader enabled

    XMLWriter enabled
  • blazergst
    Junior Member
    • Nov 2007
    • 10

    #2
    Just to confirm I exported a dummy template from this 2.0.4 install and tried to import it back again (after deleting the template) and receive the same errors.

    Comment

    • blazergst
      Junior Member
      • Nov 2007
      • 10

      #3
      Solved!!

      Simply installed php53-simplexml from ports and restarted httpd.

      Comment

      • fdcsantos
        Junior Member
        Zabbix Certified Specialist
        • Mar 2010
        • 27

        #4
        Hi there,

        Same problem here, but using Ubuntu 12.0.4 LTS. Any tips?

        Thanks in advance.

        Comment

        Working...