What is this?

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

Learn more

PRTG Network Monitor

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

Top Tags


View all Tags

Custom String w/ RegEx Not working

Votes:

0

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?

regex snmp snmp-custom-string-sensor

Created on Nov 13, 2018 6:43:54 PM



Best Answer

Accepted Answer

Votes:

4

Please give

\d+.\d+

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

Created on Nov 19, 2018 2:55:18 PM by  Torsten Lindner [Paessler Support]



6 Replies

Votes:

0

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.

Created on Nov 14, 2018 11:41:52 AM by  Torsten Lindner [Paessler Support]




Votes:

0

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.

Created on Nov 16, 2018 8:56:47 AM by  Torsten Lindner [Paessler Support]



Votes:

0

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

Created on Nov 19, 2018 1:53:08 PM

Last change on Nov 19, 2018 2:50:14 PM by  Torsten Lindner [Paessler Support]



Accepted Answer

Votes:

4

Please give

\d+.\d+

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

Created on Nov 19, 2018 2:55:18 PM by  Torsten Lindner [Paessler Support]



Votes:

0

That did it! Thanks.

Created on Nov 19, 2018 7:20:58 PM




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.