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

Inroduce trigger expression CLAUSE 'IN'. Compare received value to an array of values.

XMLWordPrintable

    • Icon: Change Request Change Request
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • None
    • None
    • None

      It would really good to have shortcut clause 'IN' similar to SQL.
      To compare single value to array of values in a single expression.

      so expression like this:

      {HOST:METRIC.last()}=0 or
      {HOST:METRIC.last()}=2 or
      {HOST:METRIC.last()}=111 or
      {HOST:METRIC.last()}=4 or
      {HOST:METRIC.last()}=7 or
      {HOST:METRIC.last()}=5 or
      {HOST:METRIC.last()}=111
      

      could become:

      {HOST:METRIC.last()} IN (0,2,111,4,7,5,111)
      

      or like this:

      {Template SNMP Interfaces SNMPv2:net.if.speed[ifHighSpeed.{#SNMPINDEX}].change()}<0 and (
      {Template SNMP Interfaces SNMPv2:net.if.type[ifType.{#SNMPINDEX}].last()}=6 or
      {Template SNMP Interfaces SNMPv2:net.if.type[ifType.{#SNMPINDEX}].last()}=7 or
      {Template SNMP Interfaces SNMPv2:net.if.type[ifType.{#SNMPINDEX}].last()}=11 or
      {Template SNMP Interfaces SNMPv2:net.if.type[ifType.{#SNMPINDEX}].last()}=62 or
      {Template SNMP Interfaces SNMPv2:net.if.type[ifType.{#SNMPINDEX}].last()}=69 or
      {Template SNMP Interfaces SNMPv2:net.if.type[ifType.{#SNMPINDEX}].last()}=117
      )
      

      to this:

      {Template SNMP Interfaces SNMPv2:net.if.speed[ifHighSpeed.{#SNMPINDEX}].change()}<0 and (
      {Template SNMP Interfaces SNMPv2:net.if.type[ifType.{#SNMPINDEX}].last()} IN (6,7,11,62,69,117) 
      )
      

            Unassigned Unassigned
            vzhuravlev Vitaly Zhuravlev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: