Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-8362

Support Usermacro in foreach function tag filter

XMLWordPrintable

    • Icon: New Feature Request New Feature Request
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • None
    • None
    • None

      Hi Zabbix Team, 
      we would like to use Usermacros in calculated item while using foreach_functions:

      for example:
      current working:
      count(exists_foreach(/*/device.status?[tag="device_type:Router" and tag="country:US"]))

      we want to use the Usermacro {$COUNTRY} like:
      {$COUNTRY} = "US"
      count(exists_foreach(/*/device.status?[tag="device_type:Router" and tag="country:\{$COUNTRY}"]))

      if this is to complicated it would also be nice to build something like:
      {$COUNTRY} = "country:US"
      count(exists_foreach(/*/device.status?[tag="device_type:Router" and tag="\{$COUNTRY}"]))

            Unassigned Unassigned
            simkimdm S K
            Votes:
            4 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: