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

File monitoring for a file that changes names?

Votes:

0

I'm trying to monitor for a file that auto populates in a certain folder where if it generates it goes into a DOWN state. The only problem is that the name changes based on the data generated. There is some consistency as the file always contains the word "BadXML" somewhere in the name. Can PRTG do this?

file-monitoring filename sensor

Created on May 22, 2018 4:26:10 PM



4 Replies

Votes:

0

You could use the Folder sensor to monitor the parent folder.

There is a channel that tracks File Count for the folder. You can then turn on the option for "Trigger 'On Change' notification" in the sensor settings under "Monitor Folder Changes".

You can then add a Change Trigger to alert you to new changes to the folder. In this case, a new file was created.

Would this work for you?

Created on May 23, 2018 8:54:17 AM by  Benjamin Day [Paessler Support] (1,441) 2 1



Votes:

0

Unfortunately not. Other files are generated in this folder, I just need one that monitors if a file with the phrase "BadXML" appears within.

Created on May 23, 2018 3:49:44 PM



Votes:

0

Then no, in this case PRTG cannot parse for partial file names.

You would need to create a script that would look for this, and then feed the information to PRTG as a custom sensor.

Created on May 24, 2018 7:27:04 AM by  Benjamin Day [Paessler Support] (1,441) 2 1



Votes:

0

Very well. I'll do that and initiate another question if I need it. Thank you.

Created on May 24, 2018 2:14:34 PM




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.