Hi,
i have a C# Applicate that return a Json status. It looks like:
Then i have a zabbix item witch type is http agent.
The request works fine. But i get the error:
What is wrong?
The JsonPath is: .prtg.result[0].value
Can help me everybody?
i have a C# Applicate that return a Json status. It looks like:
Code:
{
"prtg": {
"result": [
{
"channel": "DDS - ZDM - Konsistenzprüfung",
"value": "3",
"valuelookup": "prtg.RCLookup.DDS_ZDM_Check.BitField"
},
{
"channel": "ZDM DB Verbindungsversuche",
"value": "0",
"valuelookup": "prtg.RCLookup.Default.DB.Connect.Retry"
}
]
}
}
The request works fine. But i get the error:
Code:
Preprocessing failed for: HTTP/1.1 200 Ok..Content-Length: 361..Content-Type: application/json..Server: Grapevine/4.1.1.0 M...
1. Failed: cannot extract value from json by path ".prtg.result[0].value": cannot parse as a valid JSON object: invalid object format, expected opening character '{' or '[' at: 'HTTP/1.1 200 Ok
Content-Length: 361
Content-Type: application/json
Server: Grapevine/4.1.1.0 Microsoft-HTTPAPI/2.0
Date: Fri, 12 Apr 2019 14:19:12
The JsonPath is: .prtg.result[0].value
Can help me everybody?
Comment