-
Incident report
-
Resolution: Cannot Reproduce
-
Minor
-
None
-
None
How to reproduce:
- create a host with no teplates
- link template 'Template OS AIX'
- save
- link template 'Template OS Linux'
- save
observe error
"Template "Template OS Linux" with item key "agent.hostname" already linked to host. [hosts.php:514 ? CFrontendApiWrapper->update() ? CApiWrapper->__call() ? CFrontendApiWrapper->callMethod() ? CApiWrapper->callMethod() ? CFrontendApiWrapper->callClientMethod() ? CLocalApiClient->callMethod() ? call_user_func_array() ? CHost->update() ? CHost->massUpdate() ? CHost->massAdd() ? CHostGeneral->massAdd() ? CHostGeneral->link() ? CHostBase->link() ? CApiService::exception() in /home/andrew/zabbix/dev/trunk/frontends/php/api/classes/CHostBase.php:95]".
This is wrong. The error should be about "Template OS AIX" or, more specifically, about "Tempalte Zabbix Agent linked by Template OS AIX".
I'm well aware that adding two OS templates in a row is not quire right, yet I suppose that it is repeatable with other templates and still the error message is mailformed.