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.
Working with SNMP MIBs for some switches. I want to read the temperature for those switches. I've imported their MIBs and setup a custom SNMP library sensor.
All this works fine. Except, the sensor only has the channels 'Downtime' and 'Response Time'. The temperature value is reported as a 'Message', whatever that means?
The problem with this is, I cannot setup alarms based on the message. That way I can never send alerts when the temperature gets too high.
How do I work with this data?
Hello Michel,
Thank you for your message.
According to the information you provided, your device returns the temperature as a string and therefore the SNMP Library sensor automatically created a
SNMP Custom String sensor
.
In the settings of the sensor, you have the possibility to extract a number from the value, by using the option
Extract a numeric value using a regular expression
under
Extended Processing
.
Then, you have to use a regex to match the value. Here is a regex you can use for that:
[0-9]*\.?[0-9]+
Finally, the sensor should have a new channel with the temperature as value.
Regards.
Add comment