dirscan probe - How to alarm based on the number of files in a directory
search cancel

dirscan probe - How to alarm based on the number of files in a directory

book

Article ID: 247703

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM)

Issue/Introduction

I have a client requirement to generate an alarm if there is one or more .log files under a specific folder. The normal state should have 0 log files in the folder.

 

Environment

Release : 20.4

Component : UIM - DIRSCAN

Resolution

Under Number of files tab at Watch set Expect this value to < 1, to alarm when there is one or more matching files. 



 

Additional Information

This can be applied for any number.  For example if you want an alert if there are more than 200 files, you would put "< 200" for the expected value.  Then if 201 or more files are found, an alarm is sent.