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

count_foreach function needs operators like "greater than"

    XMLWordPrintable

Details

    • New Feature Request
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      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))

      Attachments

        Activity

          People

            Unassigned Unassigned
            mbuyukkarakas Mehmet Ali Buyukkarakas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: