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

Broken selection by tags in problem.get and event.get methods

XMLWordPrintable

    • Team B
    • Sprint 18, Sprint 19, Sprint 24
    • 4

      1. Create a host with an item and a few triggers with tags and values:

      • Trigger 1 - Service: abc, service: abcdef
      • Trigger 2 - Service: abc
      • Trigger 3 - App: qwe, Application: qwerty
      • Trigger 4 - App: qwe

      or more if desired, but this will do enough for example.

      2. Generate some problems and check the API methods problem.get and event.get:

      {
          "output": ["eventid"],
          "tags": [
              {
                  "tag": "Service",
                  "value": "abc"
              }
          ],
          "selectTags": "extend"
      }
      

      3. Observe the broken result:

      "result": [
              {
                  "eventid": "167",
                  "tags": []
              },
              {
                  "eventid": "168",
                  "tags": []
              },
              {
                  "tags": [
                      [],
                      [],
                      []
                  ]
              }
          ]
      

      4. Expected result:

      "result": [
              {
                  "eventid": "85",
                  "tags": [
                      {
                          "tag": "Service",
                          "value": "abc"
                      },
                      {
                          "tag": "service",
                          "value": "abcdef"
                      }
                  ]
              },
              {
                  "eventid": "86",
                  "tags": [
                      {
                          "tag": "Service",
                          "value": "abc"
                      }
                  ]
              }
          ]
      

            iivs Ivo Kurzemnieks
            iivs Ivo Kurzemnieks
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: