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

    • Icon: Incident report Incident report
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 3.2.2
    • Frontend (F)
    • CentOS 7 x64

      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]
      

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

              Created:
              Updated:
              Resolved: