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

Parents
  • Add the following above the 'exit 0' line in the script and perform a test run on your chosen machine:

    Write-Host 'Message.Debug:'  $env:COMPUTERNAME

    Write-Host 'Statistic.Debug: ' 0

    It will output the name of the machine its looking at. My theory is that you may be running it in local host execution mode and if thats the case you'll see the name of your poller. If this is the case make sure you are running in remote host execution mode.

Comment
  • Add the following above the 'exit 0' line in the script and perform a test run on your chosen machine:

    Write-Host 'Message.Debug:'  $env:COMPUTERNAME

    Write-Host 'Statistic.Debug: ' 0

    It will output the name of the machine its looking at. My theory is that you may be running it in local host execution mode and if thats the case you'll see the name of your poller. If this is the case make sure you are running in remote host execution mode.

Children
No Data