Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-19590

count_foreach() must not fail calculation if there is no data

XMLWordPrintable

    • Sprint 99 (Apr 2023), Sprint 100 (May 2023), Sprint 101 (Jun 2023)
    • 1

      Steps to reproduce:

      1. Create host and add one item that is not receiving any data (e.g. trapper item1[1])
      2. Add calculated item calc1 with formula: count(//item1[1],1h)
      3. Observe that calc1 has last value 0
      4. Add calculated item calc1.aggregate with formula: sum(count_foreach(//item1[*],1h))

      Result:
      calc1.aggregate turns Unsupported with the message:

      Cannot evaluate function: no data for query at "count_foreach(//item1[*],1h))".
      

      Expected:
      Given that count(//item1[1],1h) properly handles the situation when there is no history for the item, I expect the same from count_foreach(). It must return a set of values 0 by the number of items found, not an empty set.

            wiper Andris Zeila
            Kalimulin Alex Kalimulin
            Team A
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: