This can be done with Custom Sensor NetworkFileCount
This Custom Sensor returns the number of files available on a server\share
-f=folder The name of the folder that needs to be checked in a \\server\share format. If the foldername contains white spaces, enter the foldername between " ".
-u=username Optional the name of the user account that can access the share.
-p=password Optional the password or passhash(*) of the user account that can access the share.
-t=timedelta Optional the minimum number of minutes a file has to be old before it gets counted.
-s=searchpattern Optional the search pattern to be used (i.e. *.txt).
-sub Optional switch to include subfolders.
-tiw Optional, in combination with the -t= parameter, creates a time window between the current time and xx minutes ago. Only files created in that period are counted.
The sensor can be downloaded from this page
Add comment