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

Trigger function "min" doesn't work well together will pre-processing "Discard unchanged with heartbeat"

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Won't fix
    • Icon: Trivial Trivial
    • None
    • 5.2.5
    • None
    • Debian 10 amd64
      MariaDB 10.4
      Zabbix 5.2.5

      Steps to reproduce:

      1. Create an item, that collects a numerical value, that rarely changes (5m update interval)
      2. Configure pre-processing "Discard unchanged with heartbeat" for the item with 1h
      3. Create a Trigger for the item: {test-item.min(*30m*)}

        <>0

      4. Change the Value from 0 -> 1

      Result:

      The Trigger Event fires immediately, although the lowest value in the last 30m was 0, it's just not written anywhere in the database (obviously)

      See screenshots:

      Pre-processing

      Trigger

      Graph 1h

      Graph 30m

      Expected:
      "min" should work, even when using "discard with heartbeat"

      Notes:

      Of course I understand why it behaves that way. But isn't it still wrong?

      Or am I using the wrong Trigger expression for my goal, especially when using it together with discard unchanged?

      Should I have to adjust my discard to be < then my min trigger, to make this work? For example:
      Discard unchanged with heartbeat always has to < then the time value in the "min" function to work properly?

            atocko Andrey Tocko
            starko Marco Hofmann
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: