Hi,
I have a template for the REST custom sensor:
{ "prtg": { "result": [ { "channel": "Status", "valueLookup": "prtg.customlookups.paloalto", "value": lookup($..["status"],"Established") } ] } }
I get the error : Could no evaluate channel value of Status: expected type string for parameter 0 but got []interface {}.
Without the lookup I get this error:
Could not create channel Status0: expected number but got success (string).
{ "prtg": { "result": [ { "channel": "Status", "value": $..["status"] } ] } }
So I fought fixing the error with the lookup would work, but it doesnt.
What am I doing wrong?
Add comment