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

Trigger with last() function stays active if item has Discard unchanged with heartbeat

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • None
    • 6.2.7
    • Server (S)
    • None

      Steps to reproduce:

      I have an item configured in this way:

      net.tcp.port[,8009]

      Preprocessing: Discard unchanged with heartbeat (1h)

       

      And a trigger configured in this way:

      last(/Template/net.tcp.port[,\{$TOMCAT.AJP.PORT}])=0

       

      If I restart the application the port goes down for 1-2 minutes, so the collected values are:

      2023-02-08 08:04:48 Up (1)
      2023-02-08 07:04:48 Up (1)
      2023-02-08 06:04:48 Up (1)
      2023-02-08 06:00:49 Down (0)
      2023-02-08 05:02:48 Up (1)
      2023-02-08 04:02:48 Up (1)
      2023-02-08 03:02:48 Up (1)
      2023-02-08 02:02:48 Up (1)
      2023-02-08 01:02:48 Up (1)

      Result:
      The trigger fires and stays in PROBLEM state for over an hour

      In the above table the trigger fired at 2023-02-08 06:00:49 and resolved at 2023-02-08 07:04:48


      **

      While the trigger was in PROBLEM state lastest value and operational data was 1 (UP)

      Expected:
      The trigger should fire and stay in PROBLEM state for 4 minutes, according to the above data

       

      NB. This happens systematically for a lot of triggers configured in this way, is not a one off problem

            zux Edgars Melveris
            c.mammoli Cristian Mammoli
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: