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

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Critical
    • Resolution: Won't fix
    • Affects Version/s: 2.4.3
    • Fix Version/s: None
    • Component/s: Agent (G), Server (S)
    • Labels:
    • Environment:
      CentOS, zabbix 2.4.3

      Description

      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?

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: