Hi,
I want PRTG to monitor an API (via a GET) and have a channel plot the number of results returned, so I can track licensing restrictions.
So when I run the query on day 1, the JSON returned would be like:
[
{
"id": "1001",
"value": "Lorem"
},
{
"id": "1002",
"value": "ipsum"
}
]
And the value plotted in the Channel should be 2.
On day 2, the JSON returned would be:
[
{
"id": "1001",
"value": "Lorem"
},
{
"id": "1002",
"value": "ipsum"
},
{
"id": "1003",
"value": "dolor"
}
]
And the value plotted in the Channel should be 3.
I tried doing a node count with the HTTP XML/REST Value, but according to https://kb.paessler.com/en/topic/32703-parse-json-array it is unable to parse valid JSON arrays.
I imagine this would have something to do with a REST configuration file, but I'm not sure how to do counts in that.
Add comment