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

Event correlation list - inconsistent Condition sorting with PostgreSQL

XMLWordPrintable

      The order of Event correlation conditions is sometimes not determined in the list table.

      Steps to reproduce:

      1. Install Zabbix frontend with PostgreSQL (for reference I used version 15.2).
      2. Using API (or UI, but you will have to add many correlations later) add this Event correlation:
        {
          "jsonrpc": "2.0",
          "method": "correlation.create",
          "params": {
            "name": "event correlation {{request-no}}",
            "filter": {
              "evaltype": 0,
              "conditions": [
                {
                  "type": 0,
                  "tag": "old 1"
                },
                {
                  "type": 1,
                  "tag": "new 1"
                },
                {
                  "type": 1,
                  "tag": "new 2"
                },
                {
                  "type": 0,
                  "tag": "old 2"
                }
              ]
            },
            "operations": [
              {
                "type": 0
              }
            ]
          },
          "id": 1
        }
        
      3. Observe the order of the Conditions in list table, the order is predetermined and will always be like this:
      4. Add more of the same Event correlations. I usually need around 15 more, but I am not sure what is the exact count.
      5. Observe the Event correlation list again.

      Result:
      The condition order is mixed and is no longer predetermined:

      Expected:
      The order of conditions in the is predetermined.

        1. screenshot-1.png
          29 kB
          Janis Nulle
        2. screenshot-2.png
          91 kB
          Janis Nulle

            zabbix.dev Zabbix Development Team
            jnulle Janis Nulle
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: