Hello, is it possible to change the path of a folder sensor every month automatically? The path to be monitored contains the current month (e.g. "\data\2021\06\"). This currently has to be changed manually every month. Is there any way, maybe via cronjob and/or powershell script? Or can a variable be placed into the settings of the path?

Thanks in advance!


Article Comments

Hey,

Currently this is not possible. You need to adjust the name manually or via script.
We don't offer a script to do this and we ask you to do this by your own. Also please note that it could be possible that the data isn't visible in your PRTG instance after your change.


Jun, 2021 - Permalink

Many thanks for the answer! Can you give me a hint on how to access sensor settings via script? Is there maybe an example script (e.g. batch, php, powershell, prtg api, ...)?


Jun, 2021 - Permalink

Hey,

We don't offer custom scripts. Maybe anyone can help to create a powershell script.


Jun, 2021 - Permalink

Ok, it would help to get a clue, how to access settings of a specific sensor. I tried using the PrtgAPI (https://github.com/lordmilko/PrtgAPI) via Powershell and I get tons of properties for the required sensor except for any folder property.


Jun, 2021 - Permalink