What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
300.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

Working with custom sensor putting data in 'Message'

Votes:

0

Your Vote:

Up

Down

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 prtg snmp temperature

Created on Mar 15, 2021 2:19:29 PM by  Michel (60) 1 1



5 Replies

Accepted Answer

Votes:

1

Your Vote:

Up

Down

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.

Created on Mar 15, 2021 3:04:54 PM by  Florian Lesage [Paessler Support]



Votes:

0

Your Vote:

Up

Down

Awesome, that worked! I thought the extract option was for current channels, I didn't realize that it would create a whole new channel. Thanks!

Created on Mar 15, 2021 4:06:17 PM by  Michel (60) 1 1



Votes:

0

Your Vote:

Up

Down

I have a different device that created a 'SNMP Custom Table' sensor instead of Custom string, even though it also reads a temperature value. With the Custom Table I don't have the 'Extended Processing' option. How do I go about that?

Created on Apr 2, 2021 1:10:19 PM by  Michel (60) 1 1



Votes:

1

Your Vote:

Up

Down

Hello Michel,

Thank you for your feedback.

Regarding the other device, there is indeed no option to process string data with the SNMP Custom Table sensor. Therefore, I can only invite you to add SNMP Custom String sensor(s) with the OID which returns the information you desire. You will find the OID(s) which correspond to the temperature by looking in the MIB file with MIB Importer.

As the sensor created is a custom table, the OID(s) (which refer to the temperature) probably belong to a table. Therefore, I invite you to execute a walk on the table OID with SNMP tester, on the corresponding device to get all temperature OIDs.

Regards.

Created on Apr 5, 2021 6:54:15 AM by  Florian Lesage [Paessler Support]



Votes:

0

Your Vote:

Up

Down

Thanks again Florian. That worked perfectly!

Created on Apr 5, 2021 5:23:08 PM by  Michel (60) 1 1



Please log in or register to enter your reply.


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.