I have an appliance which is providing a string like this for an OID :
FAN 1 : 10800 RPM
How can I use a sensor to graph this value (only the number) ?
I tried with SNMP Custom but message says :
'FAN 1: 10800 RPM' is not a valid integer value
Thanks
Article Comments
Thank you for your msg
But can we trigger a notification based on the message content ?
Like if the message is changed to :
FAN 1 : 12000 RPM and above
Thanks
Mar, 2012 - Permalink
SNMP Custom String sensors include the option to search the result for a specific string and include the fields, "Response must include" (if the response does not contain this string, this is considered an error and can trigger a notification) and "Response must not include" (if the response does contain this string, this is considered an error and can trigger a notification). If there is a specific string that should always trigger a notification, respectively trigger a notification if it is not in the response, then you could use this option to do the same. Otherwise, it isn't possible.
Mar, 2012 - Permalink
Thank you,
but with this I will not only be capable to track a fix value like 12000 no ?
If I would like to track from 12000 to above (range 12000 to 20000) ?
Mar, 2012 - Permalink
No, it won't. As mentioned above, it is not possible to extract the value from the string result using PRTG and, as such, it isn't possible to use limits when the counter in case returns a string.
Mar, 2012 - Permalink
Hello,
Currently it is possible to use Regular Expressions to extract numerical values from a String, that way you can graph and configure limits based on the extracted value.
Once the Regular Expression is configured within the Sensor's Settings an additional channel called "Extracted Value" will show up within the sensor.
For more details on the sintax of the Regular Expressions, see the links below.
Links
May, 2015 - Permalink
I'm afraid that's not currently possible with PRTG. You can read out the string using a SNMP String sensor, but it isn't possible to separate the numeric value and use the same.
Mar, 2012 - Permalink