I'd like to create a sensor that does the following:

1: Checks a folder on a remote system. 2: Returns the number of files in that folder. 3: Returns the most recently altered date on the entries, or maybe even a list of dates/times of modified entries inside the folder.

Is there any "simple" way to do this?


Article Comments

Attention: This article is a record of a conversation with the Paessler support team. The information in this conversation is not updated to preserve the historical record. As a result, some of the information or recommendations in this conversation might be out of date.

Hi,

The most simple way woud be to download the NetworkFileCount sensor from http://prtgtoolsfamily.com/downloads/sensors

This sensor returns the number of files available on a server\share.

Parameters:

 -f=	 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=	 Optional the name of the user account that can access the share. 
 -p=	 Optional the password or passhash(*) of the user account that can access the share. 
 -t=	 Optional the minimum number of minutes a file has to be old before it is counted. 
 -s=	 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. 

May, 2015 - Permalink