相关文章推荐

What is this?

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

Learn more

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

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?

Screenshot: https://i.imgur.com/5KG1bP0.png

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?

message temperature Created on Mar 15, 2021 2:19:29 PM

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
 
推荐文章