Ad Widget

Collapse

zabbix report error: trigger already exist in ""

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • RocHuang
    Junior Member
    • Jul 2018
    • 7

    #1

    zabbix report error: trigger already exist in ""

    when update template, zabbix show error infomation: trigger already existed in "", error detail show in photo1.
    Click image for larger version

Name:	2018-07-20_103831.jpg
Views:	715
Size:	43.4 KB
ID:	363157
    I have checked the database of zabbix, to find which have the same name trigger with template and make the confict, but find nothing. The sql is below, and the sql result show in photo2.

    select * from `hosts` where hostid in (select hostid from items where itemid in (select itemid from functions where triggerid in (select triggerid from `triggers` where description like '%agent 在3分钟内无法访问%' and templateid is NULL)));

    Click image for larger version

Name:	2018-07-20_113343.jpg
Views:	774
Size:	74.2 KB
ID:	363158

    I don't have any idea to fix this problem now, is anyone can help? Thanks a lot...
  • RocHuang
    Junior Member
    • Jul 2018
    • 7

    #2
    I found if I update any trigger in this template, the error always occur...
    Click image for larger version

Name:	2018-07-20_161953.jpg
Views:	708
Size:	45.1 KB
ID:	363178

    Comment

    • dimir
      Zabbix developer
      • Apr 2011
      • 1080

      #3
      Check the template that you are updating, if it has other linked templates.

      Comment


      • RocHuang
        RocHuang commented
        Editing a comment
        Yes, this template has two linked templates.
    • dimir
      Zabbix developer
      • Apr 2011
      • 1080

      #4
      Crazy idea, but perhaps one of the linked templates is already linked to this template?

      Comment


      • RocHuang
        RocHuang commented
        Editing a comment
        You mean these templates may inherit from each other? But I have checked and this two linked templates do not link to any template...
    • dimir
      Zabbix developer
      • Apr 2011
      • 1080

      #5
      Did you check all non-templated triggers with that name, perhaps there's data corruption in the database:

      Code:
      select triggerid from `triggers` where description like '%agent 在3分钟内无法访问%' and templateid is NULL;
      Did you make any manual changes in the database?

      Comment

      Working...