Directory Check
General information
Directory Check monitors specified directory. The directory can be either local or remote (Windows share). There are three monitoring targets: directory existence, count of directory subitems and/or size of directory files. Here, directory subitem is a file or a subdirectory contained within the directory. File size and subitem count can be checked either recursively or in this directory only. Directory size is counted using actual file bytes, not the amount of disk space occupied by a file. Generally, bytes of occupied disk space is greater than number of file bytes.
Status Conditions
Successful - The directory check is considered successful if all directory monitoring targets are evaluated to true.
Failed - The directory check is considered failed if any of directory monitoring targets is evaluated to false.
Check Settings
Besides the standard properties, you should specify the following ones for this check:
- Directory Name - Directory path to check.
- Fail if [exists|does not exists] - Select directory existence monitoring criteria.
If Fail if not exists radio-button is selected, the following additional check settings are available:
- Test Subitem Count - Select this checkbox if you wish to monitor directory subitem count.
Following settings are available for this test:
- Fail if - Specify a number and comparision operation. After check execution, resulting subitem count will be compared with specified number using user-defined operation. If comparision result is false, the check is fail. You can select value changed here - check will fail if subitem number changed from previous check pass.
- Enumerate - Specify targets to count. It can be only files, only directories or both files and directories.
- Recursive - Enumerate subitems recursively or not.
- Test Directory Size - Select this checkbox if you wish to monitor directory size.
Following settings are available for this test:
- Fail if - Specify a number and comparision operation. After check execution, resulting size will be compared with specified number using user-defined operation. If comparision result is false, the check is fail. You can select value changed here - check will fail, if the size of selected directory subitems have changed from previous check pass.
- Recursive - Count directory size recursively or not.
See Also
About Checks