I have a REST custom sensor template as below. It triggers alert if the lookup is not successful. Is there a way I can reverse the condition, to make the sensor alert if the lookup value is equal to "Available"?
{ "prtg": { "description": { "comment": "Get Firmware version and status" }, "result": [{ "channel": "UpdateStatus", "value": lookup($.data[0].status, "Available"), "limitmode": 1, "LimitMinError": 0, "LimitErrorMsg": "Software status is not 'Available'!" }] } }
Add comment