Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-7111

Problems when importing a host from 1.8 into 2.2

    XMLWordPrintable

Details

    • Incident report
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.7
    • 2.1.7
    • API (A)

    Description

      When I try to import the attached host from 1.8 to 2.2, a bunch of errors are displayed:

      Invalid argument supplied for foreach() [conf.import.php:130 ? CConfigurationImport->import() ? CXmlImport18::parseMain() ? CAPIObject->massAdd() ? CAPIObject->__call() ? czbxrpc::call() ? czbxrpc::callAPI() ? call_user_func() ? CTemplate->massAdd() ? CHostGeneral->link() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/api/classes/CHostGeneral.php:144]
      Invalid argument supplied for foreach() [conf.import.php:130 ? CConfigurationImport->import() ? CXmlImport18::parseMain() ? CAPIObject->massAdd() ? CAPIObject->__call() ? czbxrpc::call() ? czbxrpc::callAPI() ? call_user_func() ? CTemplate->massAdd() ? CHostGeneral->link() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/api/classes/CHostGeneral.php:171]
      Invalid argument supplied for foreach() [conf.import.php:130 ? CConfigurationImport->import() ? CXmlImport18::parseMain() ? CAPIObject->massAdd() ? CAPIObject->__call() ? czbxrpc::call() ? czbxrpc::callAPI() ? call_user_func() ? CTemplate->massAdd() ? CHostGeneral->link() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/api/classes/CHostGeneral.php:193]

      If that host already exists: an additional error is displayed:

      Undefined index: inventory [conf.import.php:130 ? CConfigurationImport->import() ? CXmlImport18::parseMain() ? CAPIObject->update() ? CAPIObject->__call() ? czbxrpc::call() ? czbxrpc::callAPI() ? call_user_func() ? CHost->update() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/api/classes/CHost.php:947]

      The same happens with templates. Works correctly in 2.0.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jelisejev Pavels Jelisejevs (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: