LabTech Support Forums

RegEx to match ping check monitor

This forum is for discussion of the RegEx Helper plugin for LabTech.

Moderator: jware.connectwise

RegEx to match ping check monitor

Postby kemtis.buschconsulting » Sat Mar 24, 2012 7:49 am

Hi All,

I need help to get this Regular Expression working.

The result I need is to match the value from ping check monitor. it's something like this

PING OK - 192.168.2.1 Packet loss = 0 RTA = 8ms.


So I use below RegEx to check if the ping result is above 50 then the alert should go off. However, when I run this it does detect at all. Any suggestion?
[5-9][0-9]ms|[1-9][0-9][0-9]ms|1000ms
kemtis.buschconsulting
Full Member
Full Member
 
Posts: 137
Joined: Mon Oct 31, 2011 9:36 am

Re: RegEx to match ping check monitor

Postby kemtis.buschconsulting » Tue Mar 27, 2012 6:11 pm

I think i know the problem here.. but don't know the solution.

I got error message under command tab, as follow:

ERR Microsoft.VisualBasic Conversion from String"1000ms" to type 'Integer' is not valid.


It's obvious.. but why would it convert to integer? I contacted LT Support, but turns out that they don't support this. so... any idea or suggestion would really help me out.
kemtis.buschconsulting
Full Member
Full Member
 
Posts: 137
Joined: Mon Oct 31, 2011 9:36 am


Return to 4K. RegEx Helper

Who is online

Users browsing this forum: No registered users and 1 guest