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

Add support regex for Foreach functions item tag based conditions

XMLWordPrintable

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

      im usind ifAlias for tagging interface. we have about 2-6 physical interface for each logical interface. for example GGC1-1 contains 5 physical interface with ifAlias "GGC1-1"

      today i calc total traffic for all GGC* with this method:

      sum(last_foreach(/*/interface.ifHCInOctets[*]?[tag="interface:GGC1-1" or tag="interface:GGC1-2" or tag="interface:GGC1-3" or tag="interface:GGC2-1" .... and more and more]))

      {{}}

       

      with regex it will be mutch more simple:

      sum(last_foreach(/*/interface.ifHCInOctets[*]?[tag="interface:~GGC\d+-\d+"]))

            Unassigned Unassigned
            nick.w Nick
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: