Customer received a request to monitor if there are any avhd files in the below directory - we need to generate an alert in UIM. Tried using dirscan probe to accomplish this task but, scan directory is not taking the regular expressions. Please suggest how can we accomplish this in UIM.
"D:\HyperVirtualDisks\*\*.avhd" or "E:\HyperVirtualDisks\*\*.avhd"
- Regex not needed
Release : 9.1.0
Component : UNIFIED INFRASTRUCTURE MGMT
How to use dirscan to detect the existence of a file/files within a directory.
Dirscan profile example:
In this case, I tested the result by adding 1 file into the directory and then another file to make it 2.
Resultant alarms:
Alarms received respectively for each case…
test: FileFound 1 files, expected = 0
test: FileFound 2 files, expected = 0
If you choose to save the QOS as well, it is named 'QOS_DIR_NUMBER' and it will reflect the number of *.avhd files that are currently present in the directory.
If you delete one or more files, the probe will pick that up and adjust the alarm message, and QOS as well.