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
  • Yes, there is a statistic for folder count and another for file count which are a recursion within the supplied path so for example if you were using this to monitor c:\temp you would get a count on every poll of all sub folders and all sub files so you could create a threshold of 'greater than' '0' under 'foldercount' to flag a warning/critical state or build an alert to watch the count. You can also build charts to display over time such as I use for a similar requirement:

    pastedImage_0.png

Comment
  • Yes, there is a statistic for folder count and another for file count which are a recursion within the supplied path so for example if you were using this to monitor c:\temp you would get a count on every poll of all sub folders and all sub files so you could create a threshold of 'greater than' '0' under 'foldercount' to flag a warning/critical state or build an alert to watch the count. You can also build charts to display over time such as I use for a similar requirement:

    pastedImage_0.png

Children
No Data