I need a solution to check a directory that should be empty, max. after a time from 5 minutes. In that directory incoming files, a service polling the files and move the files to another location. If after 5 minutes are files in the folder we have a problem.
The question is, how I can monitor that directory? I found a ordner (its the german version of prtg)/directory-module, but I'm not sure if it is the correct solution for this problem. If yes - can I use local path (like c:\programfiles\blahblah) or I need allways UNC-Patch like
servername\blahblah?
Is that the right module or is there a another soluion?
Article Comments
Thank you for your help. It doesn't work wit c:\directory - but It works with c$\direcorty ... In an another case I have problems with the access rights, but that is not a problem of PRTG.
Jun, 2021 - Permalink
Hi,
Thank you for your post.
For this you can use our Folder Sensor. In the sensor you can use both a local and UNC path. The sensor monitors the number of files in the folder, and the age of the newest and oldest files. So in your case you have multiple options for how you want to configure the sensor.
You can set a limit that the oldest file should not be older than 5 minutes, in which case the sensor would go Down.
Or you can set a limit that the sensor goes Down if there are any files in the folder, and have the notification be sent only if the sensor spent 5 minutes in the Down state.
Kind regards,
Sasa Ignjatovic, Tech Support Team
Jun, 2021 - Permalink