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?
Article Comments
Unfortunately not. Other files are generated in this folder, I just need one that monitors if a file with the phrase "BadXML" appears within.
May, 2018 - Permalink
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.
May, 2018 - Permalink
Very well. I'll do that and initiate another question if I need it. Thank you.
May, 2018 - Permalink
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?
May, 2018 - Permalink