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

Valid JSON is not accepted as LLD data

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Won't fix
    • Icon: Critical Critical
    • None
    • 2.4.3
    • Agent (G), Server (S)
    • CentOS, zabbix 2.4.3

      In LLD rule I call zabbix agent
      system.run[/usr/local/zabbix/agent/scripts/list-files.ldd '/opt/crl/ready/']

      which returns JSON:

      {
          "data":[
              {
                  "{#FILENAME}":"crlinfo.txt"
              },
              {
                  "{#FILENAME}":"fk01.crl"
              },
              {
                  "{#FILENAME}":"new-last.crl"
              },
              {
                  "{#FILENAME}":"test001.crl"
              }
          ]
      }
      

      It is fully valid JSON, but zabbix has an error: 'Value should be a JSON object.'

      This JSON is generated by python:

      print json.dumps(outjson, separators=(',', ':'), indent=4)
      print

      why do you use your notation of JSON and don't follow the standart?

            Unassigned Unassigned
            nucleusv Vadim Nesterov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: