Hello guys,

i want to monitor the age of files with a specific extension.

Inside "folder01" is a file named "file01.bla" and a file named "file02.fuu". I only want to monitor the age of "file01.bla" because of the extension ".bla".

Is it possible to do this with the folder sensor or do i need a custom sensor?


Article Comments

Hey Tortoc,

We have two different sensors which can do that. Please refer to the following links:

Best regards,
Sven


Feb, 2018 - Permalink

Hey,

maybe my question was not clear enough. Sorry for that.

I have two (or more) "types" of files in that folder. The types are distinguished by file extension. It could happen, that there is more then one file with ".bla" extension and different file Types.

It seems to me, that the "WMI File Sensor" and the "File Sensor (SMB)" are only able to look at one specific file. I have to look after "the oldest out of a couple of files with extension ".bla" which must not be older than...". So it's more like a Folder Monitoring.

Best regards, Tortoc


Feb, 2018 - Permalink

Tortoc,

We do not have the ability to select a group of specific files when monitoring. We do have a Folder sensor, but it will look at all files in the folder, and not just single ones or specific ones.


Feb, 2018 - Permalink

Hi,

no further suggestions how to do this? Is it possible for you guys to implement this in a upcoming release of PRTG?

This is such i simple task. We programmed this years ago in VB6 and now just want to add this to our PRTG.


Feb, 2018 - Permalink

Hey Tortoc,

Actually, we do not have any native sensor which fully covers your request.

However, you might be able to achieve this by using our Custom/EXE sensor and your own custom script (e.g. PowerShell) which looks for the the oldest out of a couple of files with extension ".bla".

Kindly note that we cannot support you in writing such a script.

Best regards,
Sven


Feb, 2018 - Permalink