Hi Guys,
I hope someone can help my by my Stubid question :-)
So I woud use the REST Custom Sensor to get data from Freifunk Node the URL is https://map.ffrn.de/data/nodes.json
So I Create a Template with following entries:
{
"prtg": {
"description" : {
"device": "SLR-Offloader-003",
"comment": "demo"
},
"result": [
{
"channel": "online",
"value": nodes.000c2904305e.flags.online
}
]
}
}
But when I create the Sensor I get
Parsing error: { "prtg": { "description" : { "device": "SLR-Offloader-003", "comment": "demo" }, "result": [ { "channel": "online", "value": nodes.000c2904305e.flags.online } ] } }:10:23 - 10:27 unexpected Float while scanning object end expected "," or "}".
Hase someone a Idea to fix it and whats wrong?
Thanks all
Article Comments
Hi Thanks for the Reply,
I make a mistake but it does not work so that is the "New" template. So this is all test. Later I would greb more Details out of the JSON file.
so that is the new one
{ "prtg": { "result": [ { "channel": "online", "value": $.nodes.000c2904305e.flags.online } ] } }
About the handler, the Output of this is true or false I think prtg kan handle it :-)
Dec, 2019 - Permalink
Hi ehein,
Please note that the "value" parameter needs to be a integer or float. Please make sure the <Float> setting matches the kind of value provided. Otherwise PRTG will show 0 values.
Jan, 2020 - Permalink
This is not valid Json,
Needs to be
But... keep in mind that PRTG can only handle integer and/or decimal values.
So "nodes.000c2904305e.flags.online" will still be an invalid output for PRTG.
Sensors | Multi Channel Sensors | Tools | Notifications
PRTG Tools Family
Kind regards,
Dec, 2019 - Permalink