-
Incident report
-
Resolution: Duplicate
-
Major
-
None
-
3.2.2
-
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]
- duplicates
-
ZBX-3783 Proper API validation
- Reopened