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'!"
            }]
    }
}

Article Comments

Hello, this lookup sets the sensor channel in error when the update is not available? If so, you can add a Notification Trigger to notify when the sensor is up instead of down.


Feb, 2021 - Permalink