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

Ignore Files with Folder Sensor



I want to monitore a folder for older files (if exists files older than 2 hours than error). i can use the folder sensor, but it will allway say that there are older files because it monitors hidden system files. is it possible to exclude these files? is there another sensor for my issue?

error-messages files folder prtg

Created on Jan 25, 2019 6:17:12 AM

3 Replies



One of my older scripts might help you here - look at this post: https://kb.paessler.com/en/topic/79665-sql-database-backup-monitoring

I know I know - it is SQL - but the upper VBS script might be exactly what you want.. report back on certain file types and their age - you then would set channel limits for oldest and set the upper limit to 2 hours and done...

You might need to adjust this one line in the script:

iFileDateDiff = Datediff("d",objFile.DateLastModified,Now)

The above by default will give you a difference in DAYS - you want to have hours - so do this:

iFileDateDiff = Datediff("h",objFile.DateLastModified,Now)

Rename the channels in the results as well and you should be good..

Of course - the whole script might not be optimal for you - but I am not clear of what exactly you want to accomplish or monitor - so this is currently the best I can come up with :-)


Florian Rossmark


Created on Jan 25, 2019 3:00:28 PM



Thanks. I didn't expect it to be that complicated. I will have a look at it in a quiet way.

Created on Jan 28, 2019 3:16:17 PM



Hi Maik,

Is seems like the NetworkFileCount sensor can help you out here.

Sensors | Multi Channel Sensors | Tools | Notifications

Kind regards,

[[http://prtgtoolsfamily.com]] PRTGToolsFamily

Created on Jan 31, 2019 8:29:33 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.