How can I get integer value in sensor from custom snmp string
Modified on 2025-06-10 12:05:46 +0200
Attention: This article is a record of a conversation with the Paessler support team. The information in this conversation is not updated to preserve the historical record. As a result, some of the information or recommendations in this conversation might be out of date.
Important: We no longer maintain this article. The information might be out of date.
Hello!
By snmp (snmp custom string) I can get, e.g., string like this: "27 degrees C".
Is there possible to get substring (split string) with integer value and post it like usual sensor (channel) value of sensor?
Article Comments
Hello,
I'm afraid that is not possible.
Best Regards.
Oct, 2010 - Permalink
If this is just one sensor and not 100's . Do a script in powershell that will use snmpget.exe and trim the results.
Nov, 2010 - Permalink
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.
Hello,
I'm afraid that is not possible.
Best Regards.
Oct, 2010 - Permalink