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

Change settings automatically every month

Votes:

0

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!

date foldersensor variable

Created on Jun 2, 2021 3:08:48 PM



4 Replies

Votes:

0

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.

Created on Jun 7, 2021 8:05:30 AM by  Marijan Horsky [Paessler Support]



Votes:

0

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, ...)?

Created on Jun 7, 2021 2:08:17 PM



Votes:

0

Hey,

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

Created on Jun 8, 2021 4:56:19 AM by  Marijan Horsky [Paessler Support]



Votes:

0

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.

Created on Jun 8, 2021 10:43:03 AM




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.