zabbix更新模板中的触发器时报错, 触发器已存在于""

ZABBIX服务安装,如在RedHat、CentOS、Ubuntu等上安装

版主: 承诺无痕迹-dean

回复
penghuang
初学乍练
初学乍练
帖子: 1
注册时间: 2018年 7月 20日 10:29 星期五

zabbix更新模板中的触发器时报错, 触发器已存在于""

帖子 penghuang » 2018年 7月 20日 14:36 星期五

更新模板中的触发器时,报错如下:
Undefined offset: 0 [triggers.php:346 → CFrontendApiWrapper->update() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → call_user_func_array() → CTrigger->update() → CTriggerGeneral->inherit() → CTriggerGeneral->inherit() → CTriggerGeneral->inheritOnHost() → CTriggerGeneral->checkIfExistsOnHost() in include/classes/api/services/CTriggerGeneral.php:307]
Undefined offset: 0 [triggers.php:346 → CFrontendApiWrapper->update() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → call_user_func_array() → CTrigger->update() → CTriggerGeneral->inherit() → CTriggerGeneral->inherit() → CTriggerGeneral->inheritOnHost() → CTriggerGeneral->checkIfExistsOnHost() in include/classes/api/services/CTriggerGeneral.php:307]
Undefined offset: 0 [triggers.php:346 → CFrontendApiWrapper->update() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → call_user_func_array() → CTrigger->update() → CTriggerGeneral->inherit() → CTriggerGeneral->inherit() → CTriggerGeneral->inheritOnHost() → CTriggerGeneral->checkIfExistsOnHost() in include/classes/api/services/CTriggerGeneral.php:307]
Undefined offset: 0 [triggers.php:346 → CFrontendApiWrapper->update() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → call_user_func_array() → CTrigger->update() → CTriggerGeneral->inherit() → CTriggerGeneral->inherit() → CTriggerGeneral->inheritOnHost() → CTriggerGeneral->checkIfExistsOnHost() in include/classes/api/services/CTriggerGeneral.php:307]
Undefined offset: 0 [triggers.php:346 → CFrontendApiWrapper->update() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → call_user_func_array() → CTrigger->update() → CTriggerGeneral->inherit() → CTriggerGeneral->inherit() → CTriggerGeneral->inheritOnHost() → CTriggerGeneral->checkIfExistsOnHost() in include/classes/api/services/CTriggerGeneral.php:328]
触发器"{HOST.NAME} 的CPU过载20%"已存在于"".


因主机名没有正常显示出来,不知道该从哪里入手排查。尝试过在数据库查询trigger表中所有templateid为空的触发器,查询结果只有模板本身的触发器,并没有存在主机单独配置了该触发器,从而导致触发器重名的情况。

请问各位大神有没有好的排查思路?

回复