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

{#LLDMACRO}.regsub not supported in key

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • 5.0 (plan)
    • 4.2.0
    • Documentation (D)
    • None
    • Team D
    • Sprint 63 (Apr 2020)

      Documentation leads me to believe regsub() should be supported in key field, but it is not.

      Defining a key of 

      mt.queue[sid.{{#NAME}.regsub("(.*)",\1)}]

      results in a key of

      mt.queue[sid.{ALPHA.regsub("(.*)",\1)}]

       

      In the name field

      {{#NAME}.regsub("(.*)",\1)}
      

      results in

      ALPHA
      

      as expected.

       

            mgeneralova Marina Generalova (Inactive)
            Omniflux Omni Flux
            Team D
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: