I've created a custom string sensor using a regex to covert to floating. I'm getting the appropriate value back, but PRTG is not making a channel for that data and the response time channel is showing no data/alarm. Thoughts?


Article Comments

Joshua,

thank you for the KB-Post. To allow us a better overview of what is going on, please send us the following screenshots of the affected sensor (out of the PRTG AJAX Webinterface):
- the "Overview" tab,
- the "Log" tab,
- the "Settings" tab (multiple screenshots if necessary to cover all options).

Please make sure the screenshots show the entire user interface, and aren't cropped.


Nov, 2018 - Permalink

Here you go:

https://www.dropbox.com/s/0me12xeltwcrv5g/overview.png https://www.dropbox.com/s/rj0fnq7ty5yvhcz/log.png https://www.dropbox.com/s/o0zacabw2ozxs3c/settings1.png https://www.dropbox.com/s/usy6sdjn0d6imrf/settings2.png


Nov, 2018 - Permalink

It's got to be an issue with the regular expression. Can you give me the full string that the device returns without any filtering? Then I can run some tests, and hopefully suggest another working expression.


Nov, 2018 - Permalink

Here is the output using SNMP Tester:

----------------------- New Test -----------------------
Paessler SNMP Tester 5.2.3 
11/19/2018 8:47:13 AM (5 ms) : Device: 
11/19/2018 8:47:13 AM (7 ms) : SNMP V2c
11/19/2018 8:47:13 AM (10 ms) : Custom OID 1.3.6.1.4.1.39145.13.8.0
11/19/2018 8:47:13 AM (19 ms) : SNMP Datatype: ASN_OCTET_STR
11/19/2018 8:47:13 AM (23 ms) : -------
11/19/2018 8:47:13 AM (26 ms) : Value: 8.3
11/19/2018 8:47:13 AM (36 ms) : Done

Nov, 2018 - Permalink

Please give

\d+.\d+

a try. Keep '.' as decimal separator with that.


Nov, 2018 - Permalink

That did it! Thanks.


Nov, 2018 - Permalink