Ad Widget

Collapse

Help with JSON LLD Configuration

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • phaeus
    Junior Member
    • Jul 2019
    • 2

    #1

    Help with JSON LLD Configuration

    Hello,
    after reading Feature Request ZBXNEXT-4877 an the documentation which says

    ===BEGIN===
    Note that since
    Zabbix 4.2
    , the format of the JSON returned by low-level discovery rules has been changed. It is no longer expected that the JSON will contain the "data" object. Low-level discovery will now accept a normal JSON containing an array, in order to support new features such as the item value preprocessing and custom paths to low-level discovery macro values in a JSON document.
    ===END===
    I tried to setup a LLD for a Webservice with the HTTP Agent.

    The Discovery throws the error "Cannot find the "data" array in the recived JSON object."

    What i am missing here? Should the discovery searching for a data array? Maybe i missunderstood the documentation?

    Installed Components:
    zabbix-server-pgsql-4.2.4-1.el7.x86_64
    zabbix-get-4.2.4-1.el7.x86_64
    zabbix-web-4.2.4-1.el7.noarch
    zabbix-agent-4.2.4-1.el7.x86_64
    zabbix-web-pgsql-4.2.4-1.el7.noarch
    zabbix-release-4.2-1.el7.noarch

    The JSON Begins with

    ===BEGIN===
    {"services":[{"<status>": "online", "href": "/api/service/v1/services/ad", "name": "ad", "log": {"href": "/api/log/v1/logs/appliance-kit-adstat:default", "size": 91}},{"<status>":
    ===END===

    Any help is appreciated

    regards
    Peter
Working...