ITM Agent Insights: Monitoring Number of Files in a Directory Situation
shepardd 100000QR7C Visits (9604)
This blog will discuss how to monitor the number of files in a directory using the KNT agent.
Currently, it is not possible to check for multiple directories/files explicitly using separate rows in a single situation with the KNT File Change/File Trend attributes. This ability is not possible with the out of the box attributes.
The Windows OS agent has attributes to monitor changes to a directory or a file:
These allow you to set a watch directory, and then monitor for various types of changes. So one could define a situation to monitor the directory using the File Change attribute group, and select to watch the specific directory, and then set a situation to fire if there is a file creation or a file deletion on the directory using the "Action" attribute. Action The type of change that occurred most recently to the directory or to the file. Valid values are positive integers in the range 0 to 5 and can include the use of the *AVG, *MIN, *MAX, or *SUM functions. The numbers 1 through 5 determine the type of change that recently occurred.
Unfortunately, we do not see any way to monitor the count of files in a directory and then trigger an alert if the count is not changing with the NT agent.
Other possible alternative solutions:
Additional ITM Agent Insights series of IBM Tivoli Monitoring Agent blogs are indexed under ITM
Subscribe and follow us for all the latest information directly on your social feeds: