What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

REST Custom Sensor - alert if lookup value succeed

Votes:

0

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

prtg rest sensor

Created on Feb 3, 2021 10:34:57 AM

Last change on Feb 4, 2021 8:32:22 AM by  Felix Wiesneth [Paessler Support]



1 Reply

Votes:

0

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.

Created on Feb 8, 2021 11:35:29 PM by  Jonathan Mena [Paessler Technical Support]




Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.