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

Can't discover JSON from top level

    XMLWordPrintable

    Details

    • Type: Problem report
    • Status: Need info
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 4.2.5
    • Fix Version/s: None
    • Component/s: Server (S)
    • Labels:

      Description

      Given the attached JSON, I want to be able to create a {#LIGHTID} for the top level IDs, and then {#LIGHTNAME} for *.name.

      When I pass LLD the link to the JSON, with pre-processing set to JSON, and the parameters set to $, I would expect it to return all the JSON, but the error I get is

      Preprocessing failed for: {"1":{"state":{"on":false,"bri":254,"hue":8597,"sat":121,"effect":"none","xy":[0.4452,0.4068],"ct...
      1. Failed: cannot extract value from json by path "$": unsupported character in json path starting with: ""

      I don't know if Zabbix can descend in to the arrays during discovery to give me *.name, but at the very least it should be able to take in the entire block of JSON so that I can get the IDs usingĀ 

      $.*~
      

      Why is "$" not accepted by pre-processing?

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              zux Edgars Melveris
              Reporter:
              craigmcfly Craig Hopkins
              Votes:
              2 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated: