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

tags with - (dash) in name are not expanded in {EVENT.TAGS.*} macro

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 6.0.23rc1
    • None

      Of course such tag is defined and inherited to an event, see "item-tag" tag name.

      Zabbix 6.0.23rc1 debug for escalator:

      2077438:20231018:180300.778 In substitute_simple_macros_impl() data:'Problem started at {EVENT.TIME} on {EVENT.DATE}
      Problem name: {EVENT.NAME}
      Host: {HOST.NAME}
      Severity: {EVENT.SEVERITY}
      Operational data: {EVENT.OPDATA}
      Original problem ID: {EVENT.ID}
      {TRIGGER.URL}
      {EVENT.TAGS.hosttag}
      {EVENT.TAGS.triggertag}
      {EVENT.TAGS.item-tag} with dash
      {EVENT.TAGS.itemtag} without dash
      {EVENT.TAGS.location}
      {EVENT.TAGS.lower}
      {EVENT.TAGS.UPPER}
      '
      2077438:20231018:180300.778 In DBget_trigger_value()
      2077438:20231018:180300.779 In DBget_item_value()
      2077438:20231018:180300.779 End of DBget_trigger_value():SUCCEED
      2077438:20231018:180300.779 In resolve_opdata()
      2077438:20231018:180300.779 In DBitem_get_value()
      2077438:20231018:180300.779 query [txnlev:0] [select value_type,valuemapid,units from items where itemid=42741]
      2077438:20231018:180300.779 In zbx_vc_get_values() itemid:42741 value_type:3 count:1 period:1697641380 end_timestamp '2023.10.18 18:03:00.999999999'
      2077438:20231018:180300.779 End of zbx_vc_get_values():SUCCEED count:1 cached:1
      2077438:20231018:180300.779 In zbx_format_value()
      2077438:20231018:180300.779 In replace_value_by_map() value:'888' valuemapid:0
      2077438:20231018:180300.779 End of replace_value_by_map() value:'888'
      2077438:20231018:180300.779 In add_value_suffix() value:'888' units:'' value_type:3
      2077438:20231018:180300.779 In is_blacklisted_unit()
      2077438:20231018:180300.779 End of is_blacklisted_unit():FAIL
      2077438:20231018:180300.780 End of add_value_suffix() value:'888'
      2077438:20231018:180300.780 End of zbx_format_value()
      2077438:20231018:180300.780 End of DBitem_get_value():SUCCEED
      2077438:20231018:180300.780 End of resolve_opdata()
      2077438:20231018:180300.780 In substitute_simple_macros_impl() data:EMPTY
      2077438:20231018:180300.780 End substitute_simple_macros_impl() data:'Problem started at 18:02:59 on 2023.10.18
      Problem name: Last value more 5 (888)
      Host: it0
      Severity: Average
      Operational data: 888
      Original problem ID: 268266
      
      hosttagval
      triggertag-val
      {EVENT.TAGS.item-tag} with dash
      item-tag-val without dash
      location-val
      2222val
      1111val
      '
      2077438:20231018:180300.780 End of add_user_msg()
      

      Maybe there are other characters which cause the macro to not work.

      This should be fixed or documented.

            zabbix.dev Zabbix Development Team
            zalex_ua Oleksii Zagorskyi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: