New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

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

Free PRTG
Download >>

 

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

 

Top Tags


View all Tags


Ignore Files with Folder Sensor

Votes:

0

Your Vote:

Up

Down

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 by  Maik (0) 1



3 Replies

Votes:

0

Your Vote:

Up

Down

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 :-)

Regards

Florian Rossmark

www.it-admins.com

Created on Jan 25, 2019 3:00:28 PM by  Florian Rossmark (4,188) 3 2



Votes:

0

Your Vote:

Up

Down

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 by  Maik (0) 1



Votes:

0

Your Vote:

Up

Down

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 by  PRTG Tools Family [prtgtoolsfamily.com] (12,915) 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.