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

String value to be displayed in XML/Rest Sensor

Votes:

0

Hi PRTG Support,

We would like to know how we can get a string value to a XML/Rest Sensor.

The scenario is as below:

We are able to get a string value using custom snmp string sensor, however the string value is only showing under the name of the sensor and not in the sensor display itself, the sensor display is only showing as msec.

We know that PRTG do not support string value to be displayed on the sensor itself, but is it possible if we could get the string value to be called by the XML/Rest called from the PRTG API and be displayed on the XML Rest sensor instead as strong value?

Or is there other alternatives so that we can display string value on a sensor?

The reason for this is, the snmp value is the telco's operator name the device is using, if there was a particular telco outage, we would know that all our devices are using a different telco.

Thanks.

display string xml-rest

Created on Dec 2, 2019 7:33:27 AM



1 Reply

Votes:

0

Is it possible that you'd like to monitor the string, i.e. that it has an actual meaning you'd like to be notified upon? If so, you could use the REST Custom Sensor's lookup funcitonality:

lookup($.device[0].firmware.channel, "stable", "beta", "alpha")

You could also use that Sensor to get the actual text into the message:

 {
    "prtg": {
      "result": [
        {
          "channel": "Dummy" ,
          "value": 0
        }
      ]
     text: $.json.path.to.your.sensor.result
    }
  }

Created on Dec 2, 2019 12:18:39 PM by  Stephan Linke [Paessler 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.