Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-17420

Duplicate entry for trigger_depends prevents discovered triggers to be updated

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Cannot Reproduce
    • Icon: Trivial Trivial
    • None
    • 4.4.6
    • Server (S)

      Regularly we see failed queries in the Zabbix server log:

      [Z3005] query failed: [1062] Duplicate entry '200200001061961-200200001061964' for key 'trigger_depends_1' [insert into trigger_depends (triggerdepid,triggerid_down,triggerid_up) values (200200003738233,200200001061961,200200001061964);
      

      This prevents the affected discovered triggers to be updated.

      It appears that the server tries to insert the same depedency multiple times:

      mysql> select * from trigger_depends where triggerid_down='200200001061961' and triggerid_up='200200001061964';
      +-----------------+-----------------+-----------------+
      | triggerdepid    | triggerid_down  | triggerid_up    |
      +-----------------+-----------------+-----------------+
      | 200200001170768 | 200200001061961 | 200200001061964 |
      +-----------------+-----------------+-----------------+
      

      This issue was already happening since version 3.4.

            aigars.kadikis Aigars Kadikis
            kdaudt Kevin Daudt
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: