apmgtw probe selected hosts regex example
search cancel

apmgtw probe selected hosts regex example

book

Article ID: 134161

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM)

Issue/Introduction

Using apmgtw probe to shows UIM metrics on APM. apmgtw probe is showing all hosts on APM even though using regex to select specific hosts.

 

Log entries as below for all hosts 

Jun 27 12:02:19:556 [pool-19-thread-2, apmgtw] isHostAsRegex: [true] QoS: [ QOS_IOSTAT_AWAIT ] DeviceID: [ XXXXX ] Host: [####1], not selected for processing

Environment

Release : 8.51

Component : UIM - APMGTW 3.23

APM server version 10.7.0.197. Database PostgreSQL-9.6.2

Cause

apmgtw probe regex syntax needs to be modified

Resolution

Existing pattern used in apmgtw config as below needs to be modified

included-hosts = /^(dso).*/

Can use any regular expression and probe adds case insensitive qualifier. 


Example

You may use the below to match hosts starting with "dso"

included-hosts = ^(DSO).*?$


No need to add slashes (/).

If additional strings to match for example addtional devices start with "apm" can use the expression ^(DSO|APM).*?$ to match against both strings.


Example

included-hosts = ^(DSO|APM).*?$

Currently there is no option to perform case sensitive Host value comparison

Can use any regular expression and probe adds case insensitive qualifier.



Additional Information

included_hosts_as_regex is set to True or False

If you set this key value as True, the probe supports regular expression condition for the Selected Hosts field.

If you set this key value as False, you must use delimiter "|" symbol to select multiple hosts.