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

OOTB template files missing the "formulaid" tag for discovery rules

XMLWordPrintable

      Steps to reproduce:

      I've noticed that some newer templates for Zabbix 7.0 fail to import showing the following error.

      Invalid tag "/zabbix_export/templates/template(1)/discovery_rules/discovery_rule(1)/filter/conditions/condition(1)": the tag "formulaid" is missing.

       

      The error clearly states that the "formulaid" tag is missing. This is actually the "Filter" expression "Label" from the discovery rule.

      If we follow the path given, we can see that it points to the first discovery rule in the template .yaml file. In fact, all the discovery rules in the template file do not have the "formulaid" tag.

       

      I have found this missing tag in the templates bellow provided by the official Zabbix Git for release 7.0. "Windows by Zabbix agent" ("template_os_windows_snmp.yaml") for example.

      • Windows by Zabbix agent
      • Windows by Zabbix agent active
      • Windows by SNMP
      • Linux by Zabbix agent
      • Linux by Zabbix agent active
      • Linux by Prom
      • Linux by SNMP

       

      When installing a new updated instance of Zabbix 7.0, the user should not see an error because the installation already includes the template. However, if a user were to update the Zabbix instance to 7.0 and import the new template version, the above error would be detected.

      The missing tag prevents such templates from being imported.

      Possibly all OOTB templates that have discovery rules should be revised.

            zabbix.dev Zabbix Development Team
            markfree MArk
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: