Quantcast
Channel: Operations Manager - General forum
Viewing all articles
Browse latest Browse all 11941

Using RegEx in Subscription Criteria

$
0
0

Using RegEx in Subscription Criteria

Hello

I want to use RegEx expression for filtering in my Subscription criteria, as follows:

Let say all the monitor I created start with same set of characters i.e.

"My Monitor"

Therefore I have several monitors called

My Monitor ABC

My Monitor 123

My Monitor XYZ

Therefore as part of the Subscription Criteria, under "with a specific name" I currently have

My Monitor%

The % meaning any one or more characters. That works find I receive notifications for alerts from all of the monitors with the above names.

Now what I want to do is keep this one subscription criteria but exclude notifications from say My Monitor 123. I still want to receive notifications from the other two monitors, therefore I was thinking this is a case for RegEx

First question is can I use RegEx in the criteria "with a specific name" field? I guess I am already doing the with the % however, I believe that is an SQL expression rather than a true RegEx expression?

The following blog has some detailed information

http://social.technet.microsoft.com/Forums/en-US/operationsmanagergeneral/thread/ac0bf65f-f562-4f8c-b624-5fbe7ee2e795/

I am not clear if this would work in my case, for example it states the ^ character is used to denote NOT. Based on this I was thinking about changing the above

My Monitor%

To

My Monitor%[^123]

Will the above work, is it the correct syntax?

Any advise, most welcome
Thanks you all
Ernie


Viewing all articles
Browse latest Browse all 11941

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>