Ad Widget

Collapse

Zabbix 2.2.2 import template failing

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shall
    Junior Member
    • Feb 2014
    • 7

    #1

    Zabbix 2.2.2 import template failing

    We recently upgraded from Zabbix 2.0.6 to 2.2.2, and wanted to try out some of the new VMWare monitoring. I downloaded the new VMWare templates from https://www.zabbix.org/wiki/Zabbix_T...cial_Templates and tried importing, but it fails every time (no matter if I use the default update/add rules selection or select all of the checkboxes). From the error it appears that for some reason the file name to be uploaded isn't getting passed to the server:

    Code:
    Undefined index: type [conf.import.php:123 → CUploadFile->__construct() in /data1/zabbix/include/classes/helpers/CUploadFile.php:61]
    Undefined index: tmp_name [conf.import.php:123 → CUploadFile->__construct() in /data1/zabbix/include/classes/helpers/CUploadFile.php:62]
    Undefined index: error [conf.import.php:123 → CUploadFile->__construct() in /data1/zabbix/include/classes/helpers/CUploadFile.php:63]
    Undefined index: size [conf.import.php:123 → CUploadFile->__construct() in /data1/zabbix/include/classes/helpers/CUploadFile.php:64]
    file_get_contents(): Filename cannot be empty [conf.import.php:127 → CUploadFile->getContent() → file_get_contents() in /data1/zabbix/include/classes/helpers/CUploadFile.php:78]
    XMLReader::XML(): Empty string supplied as input [conf.import.php:130 → CConfigurationImport->import() → CXmlImportReader->read() → XMLReader->XML() in /data1/zabbix/include/classes/import/readers/CXmlImportReader.php:61]
    XMLReader::read(): Load Data before trying to read [conf.import.php:130 → CConfigurationImport->import() → CXmlImportReader->read() → CXmlImportReader->xmlToArray() → XMLReader->read() in /data1/zabbix/include/classes/import/readers/CXmlImportReader.php:76]
    DOMDocument::loadXML(): Empty string supplied as input [conf.import.php:130 → CConfigurationImport->import() → CXmlImport18::import() → DOMDocument->loadXML() in /data1/zabbix/include/classes/import/CXmlImport18.php:400]
    Thanks for your help in advance
  • tchjts1
    Senior Member
    • May 2008
    • 1605

    #2
    So, you are having errors with importing templates as well as errors rendering graphs.

    Explain how you upgraded the frontend from 2.0.6 to 2.2

    Did you do an overwrite of the old frontend? Did you do a completely fresh install of the frontend? Did you move the old frontend, then put the new frontend into place?

    Comment

    • shall
      Junior Member
      • Feb 2014
      • 7

      #3
      I built Zabbix 2.2.2 from source - for the install I
      1. Shut down apache and zabbix_server
      2. configure;make install of new Zabbix
      3. rm -rf <entire Zabbix web directory>
      4. cp -a frontends/php/* to new Zabbix web directory
      5. Start zabbix_server and apache
      6. Go to <hostname>/setup.php and go through installation

      Comment

      • shall
        Junior Member
        • Feb 2014
        • 7

        #4
        Solved my issue. I'm not 100% sure about it, but it appears there is some problem with the interaction between SLES 11 SP2's PHP 5.3 packages and the Zabbix 2.2 PHP. Most everything Javascript in Zabbix was not getting loaded properly by Zabbix's Javascript loader that is written in PHP.

        On a last ditch effort, I decided to try using CentOS 6.4 as the server, and that did the trick. I am now able to import templates, see graphs, etc. I used the Zabbix yum repos, which worked very nicely

        Not sure, but I'd bet if someone else tried using Zabbix 2.2 (but probably all versions of Zabbix) on SLES 11 SP2 using the PHP 5.3 packages, they'd run into this issue as well. The issue is solved for me, but if someone from Zabbix thinks this is worthwhile to track as a bug I'm happy to help.

        Thanks tchjts1 for your help.

        Comment

        Working...