I'm trying to monitor a JSON-output like this:
{
"version": "LinOTP 1.1.1.1",
"jsonrpc": "2.0",
"result": {
"status": true,
"value": {
"Realms": {
"myrealm": {
"mygroup": 72
}
}
}
},
"id": 1
}
But I'm having some trouble finding the right value for "XML Node (and optional property)".
version
is working fine -> PRTG value is "LinOTP_1.1.1.1".
But how do I get PRTG to monitor the value 72 in this example? Shouldn't
result/status/value/Realms/myrealm/mygroup
be the right search filter here ("Node result/status/value/Realms/myrealm/mygroup not found in xml result.")?
Article Comments
Upps, you're right. But unfortunately it's still not working:
Node result/value/Realms/myrealm/mygroup not found in xml result.
May, 2016 - Permalink
Strange, when using your json this works for me well. Is the provided json the whole content returned by the webserver? (You also can test your query here http://www.jsonquerytool.com/ just switch to XPath for JSON in the dropdown on the upper right)
May, 2016 - Permalink
Hi,
please try removing status for your query string:
Then it should work. :)
Best regards
May, 2016 - Permalink