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

count_foreach function needs operators like "greater than"

XMLWordPrintable

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

      I need to create a calculated item, which will calculate the NUMBER of interfaces with status DOWN.

      Basically I need a foreach function with operators, to filter some values matching a condition like "greater" or "less than"

      I made some researches. There is a trigger function count which gives us the chance of using operators like "less than", "greater than". https://www.zabbix.com/documentation...ctions/history

      But the problem is, there is no way to calculate "number of up interfaces" in a trigger and create the alert.
      We need something in item functions. But the related item functions dont provides operators. https://www.zabbix.com/documentation...ated/aggregate

      According the documentation, it is not possible to write something like this ;

      count(last_foreach(//net.if.status,1h,"lt",2))
      or
      count(count_foreach(/*/net.if.status,1h,"lt",2))

            Unassigned Unassigned
            mbuyukkarakas Mehmet Ali Buyukkarakas
            Votes:
            4 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: