Folder Statistics

This template generates a number of statistics on specified folder for both stats and alerting. Simply apply to a node and enter the folder path in 'script arguments' field to get:

Folder Last Modified Time Stamp

File Count

Sub Folder Count

Total Size

File with oldest edit date

File with latest edit date

*Updated to fix a bug which may have caused error result when no files found.

**Removed recursivness by default - if you need to search subfolders unrem '-recurse' on the GCI lines by removing the '#'. 

Parents
  • It will do as you require. If you wanted to alert if any folder is created anywhere on a c: just specify C: as the folder to monitor then tick 'count statistic as difference' under foldercount. The first poll will calculate the current total folders then from then on the count should equal zero so just set an alert to be raised if the count is higher than zero. Presumably though you will have some idea where the folder may be created so just use the top level parent as the folder to monitor.

Comment
  • It will do as you require. If you wanted to alert if any folder is created anywhere on a c: just specify C: as the folder to monitor then tick 'count statistic as difference' under foldercount. The first poll will calculate the current total folders then from then on the count should equal zero so just set an alert to be raised if the count is higher than zero. Presumably though you will have some idea where the folder may be created so just use the top level parent as the folder to monitor.

Children
No Data