search cancel

Group Alarm conditions with Pattern filters not working

book

Article ID: 243187

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM)

Issue/Introduction

Following major incidents tested alarm group policies based on :

1. Disk usage percent metric - match only on Pattern D:\ or E:\ not working in UIM ACC and PRD

2. Disk usage percent metric - match only on regex /D:\\/ or /E:\\/ working in UIM ACC and PRD

Device level policy based on:

3. Disk usage percent metric - match only on Pattern D:\ or E:\ working in UIM ACC and PRD

Environment

Release : 20.4

Component : UIM - ALARM_ENRICHMENT

Resolution

D:\ or E:\ are not valid patterns rather D:\\ and E:\\ are the valid patterns, so ~/D:\\/ is the correct way to be used in the regex pattern.

The pattern is internally converted to a regular expression for doing the matching. In this case, the pattern used was "D:\" which will get converted to "~/^D:$/", i.e. the escape character backslash (\) gets lost.

To preserve the backslash character, it should be escaped with another backslash.