[ZBX-24875] OOTB template files missing the "formulaid" tag for discovery rules Created: 2024 Jul 17  Updated: 2024 Jul 30

Status: Confirmed
Project: ZABBIX BUGS AND ISSUES
Component/s: Templates (T)
Affects Version/s: 7.0.0
Fix Version/s: None

Type: Problem report Priority: Trivial
Reporter: MArk Assignee: Zabbix Development Team
Resolution: Unresolved Votes: 2
Labels: LLD, Tags, discovery, filter, template
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

All


Attachments: PNG File error_path.png     PNG File image-2024-07-30-09-59-15-309.png     PNG File import_error.png    
Issue Links:
Duplicate

 Description   

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.



 Comments   
Comment by Roberto Cremasco [ 2024 Jul 30 ]

I have the same issue on Zabbix 6.4.14 when trying to import Kubernetes templates from https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/app/kubernetes_http?at=refs%2Fheads%2Frelease%2F6.4

 

Comment by Roberto Cremasco [ 2024 Jul 30 ]

Fixed updating to 6.4.17 as hinted in https://support.zabbix.com/browse/ZBX-24868 thx

Generated at Fri Apr 04 22:34:30 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.