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

Fix aggregate checks error message

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • 3.4.0alpha1
    • 3.2.3
    • Server (S)
    • None
    • Sprint 1
    • 0.5

      Double quoting of groups when aggregated item becomes unsupported. Similarly, if there are no groups specified in the key then we could give a more specific error.

      key:
      grpsum[["a/b1111", "aaaaaa"],"dummy_item_1",last]
      
      log:
       24968:20161110:160425.018 item "dummy_aggregator:grpsum[["a/b1111", "aaaaaa"],"dummy_item_1",last]" became not supported: No items for key "dummy_item_1" in group(s) ""a/b1111","aaaaaa"".
      
      info in frontend:
      No items for key "dummy_item_1" in group(s) ""a/b1111","aaaaaa"".
      

      When quotes are removed from key...

      key:
      grpsum[[a/b1111, aaaaaa],"dummy_item_1",last]
      
      log:
       24965:20161110:160754.419 error reason for "dummy_aggregator:grpsum[[a/b1111, aaaaaa],"dummy_item_1",last]" changed: No items for key "dummy_item_1" in group(s) "a/b1111,aaaaaa".
      
      
      info in frontend:
      No items for key "dummy_item_1" in group(s) "a/b1111,aaaaaa".
      

      wiper Opted for quoting individual groups in the list:

       -> ""
      "" -> ""
      a -> "a"
      "a" -> "a"
      a,b -> "a", "b"
      "a","b" -> "a", "b"
      "a",b,"c" -> "a", "b", "c"
      

      Added specific error message if no groups are found, but did not make separate error message for empty groups list.

      sandis.neilands The info message for the unsupported item in case all specified groups are incorrect is now as follows.

      No groups in list "aaaaa", "bbbbb", "ccccc".
      

      Let's revisit it to use the same vocabulary as the docs after martins-v updates the relevant page.

      martins-v Possibly, "None of the groups in list "..." is correct"

            Unassigned Unassigned
            wiper Andris Zeila
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: