New Question
 
 
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 PRTG
Download >>

 

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

 

Top Tags


View all Tags


Custom String w/ RegEx Not working

Votes:

0

Your Vote:

Up

Down

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 by  Joshua Stump (0) 1



Best Answer

Accepted Answer

Votes:

4

Your Vote:

Up

Down

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

Your Vote:

Up

Down

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

Your Vote:

Up

Down

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

Your Vote:

Up

Down

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 by  Joshua Stump (0) 1

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



Accepted Answer

Votes:

4

Your Vote:

Up

Down

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

Your Vote:

Up

Down

That did it! Thanks.

Created on Nov 19, 2018 7:20:58 PM by  Joshua Stump (0) 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.