What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

Check Modification Dates on Folder Entries

Votes:

0

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?

folder prtg wmi

Created on May 6, 2015 5:16:46 PM



1 Reply

Votes:

6

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. 

Created on May 7, 2015 7:45:15 AM




Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.