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

    • Sprint 76 (May 2021), Sprint 77 (Jun 2021)
    • 0.125

      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.

       

            MVekslers Michael Veksler
            Taikocuya Marcel Renner
            Team B
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: