How to configure Alarm policies with a RegEx or Pattern filter for specific drives\filesystems
search cancel

How to configure Alarm policies with a RegEx or Pattern filter for specific drives\filesystems

book

Article ID: 275724

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM)

Issue/Introduction

I have a Windows and Unix group and need to configure alarm policies for specific drives using the Regex or Pattern option available in Select Component 

Windows group example: A policy for C:\ and another with one with D:\, E:\, F:\

Unix group example:  A policy for / and another with one with both / and /boot/efi

Example:

 

 

Environment

Any UIM version

Resolution

Windows filter for a single drive: /^(C:\\)$/ or ^(C:)[\\]

Windows filter for multiple drives: ^[D-Fd-f]:\\

Unix filter for a single drive: /^(\/)$/

Unix filter for multiple drives: /^(\/|\/boot\/efi)$/

Unix filter to do a multiple exclude: /^(?!.*(?:(\/dev|\/run))).*/