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

'cannot link template(s) (null)' error message in server logs

XMLWordPrintable

    • Sprint candidates

      1) Setup autoregistration to link the following MANY_TEMPLATES_TEMPLATE template:
      zbx_export_templates.yaml

      2) run autoregistraton
      make sure the host is discovered and template is linked

      3) in ui - 'unlink' this template (do not run 'unlink and clear')
      4) change agent host metadata, and restart the agent
      5)
      cannot link template(s) (null)
      is logged in server logs:

      897691:20250214:173736.715 In DBcopy_template_triggers()
      897691:20250214:173736.717 In get_templates_triggers_data()
      897691:20250214:173736.717 ignoring query [txnlev:1] [select t.triggerid,t.description,t.expression,t.status,t.type,t.priority,t.comments,t.url,t.u\
      rl_name,t.flags,t.recovery_expression,t.recovery_mode,t.correlation_mode,t.correlation_tag,t.manual_close,t.opdata,t.discover,t.event_name from tri\
      ggers t where t.triggerid in (select distinct tg.triggerid from triggers tg,functions f,items i where tg.triggerid=f.triggerid and f.itemid=i.itemi\
      d and i.hostid=10824)] within failed transaction
      897691:20250214:173736.718 End of get_templates_triggers_data():FAIL
      897691:20250214:173736.720 End of DBcopy_template_triggers():FAIL
      897691:20250214:173736.720 End of zbx_db_copy_template_elements():FAIL
      897691:20250214:173736.721 cannot link template(s) (null)
      

            rtrizna Romans Trizna
            arimdjonoks Artjoms Rimdjonoks
            Team C
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: