What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
300.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

How to monitor file-ages in root folder ?

Votes:

0

Your Vote:

Up

Down

I'm creating a sensor to monitor the age of files in a specific directory, I want to monitor the age of the files, if they are older then 5 minutes, I need an alarm. In a directory with no subfolders is works fine. In a directory with subfolders, the sensor detects also older files in the subfolder, but I don't want them to be alarmed.

I've put on "Do not recurse subfolders", but that doesn't do the trick. Any suggestions ?

age file subfolder

Created on Jan 19, 2011 12:03:12 PM by  gva3145 (0) 1



2 Replies

Votes:

0

Your Vote:

Up

Down

Hello,

I'm afraid I don't have a suggestion for a solution, only the explanation what happens. Even if the option to recurse subfolders is not set, the sensor checks the sub-folders as objects themselves. It does not go into the subfolders, but checks the subfolders for age, etc., and this is likely the reason why the it works in your case in folders without subfolders.

Best Regards.

Created on Jan 19, 2011 7:06:53 PM by  Torsten Lindner [Paessler Support]



Votes:

0

Your Vote:

Up

Down

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

Created on Jan 19, 2011 8:10:14 PM by  PRTG Tools Family [prtgtoolsfamily.com] (13,263) 3 4



Please log in or register to enter your reply.


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.