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

Folder timestamp

Votes:

0

Your Vote:

Up

Down

Hi,

here comes the scenario:

Monitor folder from 07:00 to 18:00 => Easy, just setup the schedule. I want to be notified if during this period no new files arrived in the folder. The problem is, that the files are only temporary in this folder. So files come in, get processed and are deleted.

I played with the newest and oldest channels and they work perfectly when there are files permanentely in the folder. But I could not figure out how to handle the situation with the temporary files.

Then I saw that the timestamp of the folder gets modified when new files arrive. So I thought that I could monitor the folder timestamp and get notified when the timestamp is too old. But unfortunately there is no channel for the folder timestamp in the folder sensor.

Any ideas how to handle this problem? I know that there is always the possibility to write a script, but wanted to avoid this if there is already an existing solution.

Kind regards Michael

folder monitor temporary-files timestamp

Created on Jul 22, 2021 8:09:28 AM by  mwarreyn (60) 1 1



1 Reply

Accepted Answer

Votes:

1

Your Vote:

Up

Down

Hi,

I was able to find a solution for this using a custom sensor (EXE/Script (Advanced)) and wrote a powershell script that returns the difference between the current timestamp and the LastWriteTime of the folder.

Your guide how to create a custom sensor using powershell was very helpful. https://kb.paessler.com/en/topic/71356-guide-for-powershell-based-custom-sensors

Best regards Michael

Created on Jul 23, 2021 9:45:00 PM by  mwarreyn (60) 1 1



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.