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

Problem with importing trigger on hosts from xml

    XMLWordPrintable

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 3.2.2
    • Fix Version/s: None
    • Component/s: Frontend (F)
    • Environment:
      CentOS 7 x64

      Description

      I am having problems when importing hosts from XML. It doesn't import triggers from discovery.
      When i adding host manualy it works without problem. Everything else is ok.

      Here is error:

      Undefined offset: 0 [conf.import.php:176 ? CFrontendApiWrapper->import() ? CApiWrapper->__call() ? CFrontendApiWrapper->callMethod() ? CApiWrapper->callMethod() ? CFrontendApiWrapper->callClientMethod() ? CLocalApiClient->callMethod() ? call_user_func_array() ? CConfiguration->import() ? CConfigurationImport->import() ? CConfigurationImport->processHosts() ? CHostImporter->import() ? CTemplate->massAdd() ? CHostGeneral->link() ? CTriggerGeneral->syncTemplates() ? CTriggerGeneral->inherit() ? CTriggerGeneral->inheritOnHost() ? CTriggerGeneral->createReal() in include/classes/api/services/CTriggerGeneral.php:893]
      Invalid argument supplied for foreach() [conf.import.php:176 ? CFrontendApiWrapper->import() ? CApiWrapper->__call() ? CFrontendApiWrapper->callMethod() ? CApiWrapper->callMethod() ? CFrontendApiWrapper->callClientMethod() ? CLocalApiClient->callMethod() ? call_user_func_array() ? CConfiguration->import() ? CConfigurationImport->import() ? CConfigurationImport->processHosts() ? CHostImporter->import() ? CTemplate->massAdd() ? CHostGeneral->link() ? CTriggerGeneral->syncTemplates() ? CTriggerGeneral->inherit() ? CTriggerGeneral->inheritOnHost() ? CTriggerGeneral->createReal() in include/classes/api/services/CTriggerGeneral.php:893]
      Undefined offset: 0 [conf.import.php:176 ? CFrontendApiWrapper->import() ? CApiWrapper->__call() ? CFrontendApiWrapper->callMethod() ? CApiWrapper->callMethod() ? CFrontendApiWrapper->callClientMethod() ? CLocalApiClient->callMethod() ? call_user_func_array() ? CConfiguration->import() ? CConfigurationImport->import() ? CConfigurationImport->processHosts() ? CHostImporter->import() ? CTemplate->massAdd() ? CHostGeneral->link() ? CTriggerGeneral->syncTemplates() ? CTriggerGeneral->inherit() ? CTriggerGeneral->inheritOnHost() ? CTriggerGeneral->createReal() in include/classes/api/services/CTriggerGeneral.php:893]
      Invalid argument supplied for foreach() [conf.import.php:176 ? CFrontendApiWrapper->import() ? CApiWrapper->__call() ? CFrontendApiWrapper->callMethod() ? CApiWrapper->callMethod() ? CFrontendApiWrapper->callClientMethod() ? CLocalApiClient->callMethod() ? call_user_func_array() ? CConfiguration->import() ? CConfigurationImport->import() ? CConfigurationImport->processHosts() ? CHostImporter->import() ? CTemplate->massAdd() ? CHostGeneral->link() ? CTriggerGeneral->syncTemplates() ? CTriggerGeneral->inherit() ? CTriggerGeneral->inheritOnHost() ? CTriggerGeneral->createReal() in include/classes/api/services/CTriggerGeneral.php:893]
      Undefined offset: 0 [conf.import.php:176 ? CFrontendApiWrapper->import() ? CApiWrapper->__call() ? CFrontendApiWrapper->callMethod() ? CApiWrapper->callMethod() ? CFrontendApiWrapper->callClientMethod() ? CLocalApiClient->callMethod() ? call_user_func_array() ? CConfiguration->import() ? CConfigurationImport->import() ? CConfigurationImport->processHosts() ? CHostImporter->import() ? CTemplate->massAdd() ? CHostGeneral->link() ? CTriggerGeneral->syncTemplates() ? CTriggerGeneral->inherit() ? CTriggerGeneral->inheritOnHost() ? CTriggerGeneral->createReal() in include/classes/api/services/CTriggerGeneral.php:893]
      Invalid argument supplied for foreach() [conf.import.php:176 ? CFrontendApiWrapper->import() ? CApiWrapper->__call() ? CFrontendApiWrapper->callMethod() ? CApiWrapper->callMethod() ? CFrontendApiWrapper->callClientMethod() ? CLocalApiClient->callMethod() ? call_user_func_array() ? CConfiguration->import() ? CConfigurationImport->import() ? CConfigurationImport->processHosts() ? CHostImporter->import() ? CTemplate->massAdd() ? CHostGeneral->link() ? CTriggerGeneral->syncTemplates() ? CTriggerGeneral->inherit() ? CTriggerGeneral->inheritOnHost() ? CTriggerGeneral->createReal() in include/classes/api/services/CTriggerGeneral.php:893]
      Undefined offset: 0 [conf.import.php:176 ? CFrontendApiWrapper->import() ? CApiWrapper->__call() ? CFrontendApiWrapper->callMethod() ? CApiWrapper->callMethod() ? CFrontendApiWrapper->callClientMethod() ? CLocalApiClient->callMethod() ? call_user_func_array() ? CConfiguration->import() ? CConfigurationImport->import() ? CConfigurationImport->processHosts() ? CHostImporter->import() ? CTemplate->massAdd() ? CHostGeneral->link() ? CTriggerGeneral->syncTemplates() ? CTriggerGeneral->inherit() ? CTriggerGeneral->inheritOnHost() ? CTriggerGeneral->createReal() in include/classes/api/services/CTriggerGeneral.php:893]
      Invalid argument supplied for foreach() [conf.import.php:176 ? CFrontendApiWrapper->import() ? CApiWrapper->__call() ? CFrontendApiWrapper->callMethod() ? CApiWrapper->callMethod() ? CFrontendApiWrapper->callClientMethod() ? CLocalApiClient->callMethod() ? call_user_func_array() ? CConfiguration->import() ? CConfigurationImport->import() ? CConfigurationImport->processHosts() ? CHostImporter->import() ? CTemplate->massAdd() ? CHostGeneral->link() ? CTriggerGeneral->syncTemplates() ? CTriggerGeneral->inherit() ? CTriggerGeneral->inheritOnHost() ? CTriggerGeneral->createReal() in include/classes/api/services/CTriggerGeneral.php:893]
      Undefined offset: 0 [conf.import.php:176 ? CFrontendApiWrapper->import() ? CApiWrapper->__call() ? CFrontendApiWrapper->callMethod() ? CApiWrapper->callMethod() ? CFrontendApiWrapper->callClientMethod() ? CLocalApiClient->callMethod() ? call_user_func_array() ? CConfiguration->import() ? CConfigurationImport->import() ? CConfigurationImport->processHosts() ? CHostImporter->import() ? CTemplate->massAdd() ? CHostGeneral->link() ? CTriggerGeneral->syncTemplates() ? CTriggerGeneral->inherit() ? CTriggerGeneral->inheritOnHost() ? CTriggerGeneral->createReal() in include/classes/api/services/CTriggerGeneral.php:893]
      Invalid argument supplied for foreach() [conf.import.php:176 ? CFrontendApiWrapper->import() ? CApiWrapper->__call() ? CFrontendApiWrapper->callMethod() ? CApiWrapper->callMethod() ? CFrontendApiWrapper->callClientMethod() ? CLocalApiClient->callMethod() ? call_user_func_array() ? CConfiguration->import() ? CConfigurationImport->import() ? CConfigurationImport->processHosts() ? CHostImporter->import() ? CTemplate->massAdd() ? CHostGeneral->link() ? CTriggerGeneral->syncTemplates() ? CTriggerGeneral->inherit() ? CTriggerGeneral->inheritOnHost() ? CTriggerGeneral->createReal() in include/classes/api/services/CTriggerGeneral.php:893]
      Undefined offset: 0 [conf.import.php:176 ? CFrontendApiWrapper->import() ? CApiWrapper->__call() ? CFrontendApiWrapper->callMethod() ? CApiWrapper->callMethod() ? CFrontendApiWrapper->callClientMethod() ? CLocalApiClient->callMethod() ? call_user_func_array() ? CConfiguration->import() ? CConfigurationImport->import() ? CConfigurationImport->processHosts() ? CHostImporter->import() ? CTemplate->massAdd() ? CHostGeneral->link() ? CTriggerGeneral->syncTemplates() ? CTriggerGeneral->inherit() ? CTriggerGeneral->inheritOnHost() ? CTriggerGeneral->createReal() in include/classes/api/services/CTriggerGeneral.php:893]
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              gojkokbc Gojko Bozic
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: