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

Item vmware.datastore.discovery returns old JSON format '{"data":[...]}'

    XMLWordPrintable

    Details

    • Team:
      Team B
    • Sprint:
      Sprint 76 (May 2021), Sprint 77 (Jun 2021)
    • Story Points:
      0.125

      Description

      Steps to reproduce:

      1. Create a discovery item.
      2. Choose key vmware.datastore.discovery.

      Result:
      Returns old JSON format.

       

      {"data":[{"{#DATASTORE}":"FOO",...},{"{#DATASTORE}":"BAR",...}]}
      

      Expected:
      Return new JSON format.

       

      [{"{#DATASTORE}":"FOO",...},{"{#DATASTORE}":"BAR",...}]
      

      According to the documentation: "Built-in discovery keys have been updated to return an array of LLD rows at the root of JSON document."

      Workaround for Preprocessing:

      If you want to apply preprocessing, you have to catch this case so that you can access the elements as usual.

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              zabbix.dev Zabbix Development Team
              Reporter:
              Taikocuya Marcel Renner
              Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated: