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

Can't discover JSON from top level

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • None
    • 4.2.5
    • Server (S)

      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?

        1. hue-json.txt
          3 kB
          Craig Hopkins
        2. Screenshot 2019-08-06 at 11.19.37.png
          38 kB
          Craig Hopkins
        3. Screenshot 2019-08-06 at 11.19.48.png
          18 kB
          Craig Hopkins
        4. Screenshot 2019-08-06 at 11.20.56.png
          15 kB
          Craig Hopkins

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

              Created:
              Updated:
              Resolved: