The dependencies on my installation have become a bit of a mess, so I would like to start again.
How can I reset the dependencies back to factory fresh?
Article Comments
You can use the following script, which makes use of PRTGapi:
https://gist.github.com/stephanlinke/e2a5374568d6e3ff942fb1b696e7d5e5
After installing the PRTGapi module, you'll need to modify the following lines:
# Line 6
$PRTGServer = "your.prtg.server.com"
# Line 32
$Sensors = (Get-Sensor)
[...]
# Line 41
dependencytype_ = 0
The script will make a backup of your configuration and should reset the dependencies. The default script will actually set the ping Sensors within your PRTG to be the master dependency object for their corresponding object. You might want to execute it afterwards.
Aug, 2019 - Permalink
Thanks that's worked perfectly, at least it did once I re-ran it against "Get-Device" so that it also reset the device dependencies.
Aug, 2019 - Permalink
Nice, glad it didn't break anything :)
Aug, 2019 - Permalink
You can use the following script, which makes use of PRTGapi:
https://gist.github.com/stephanlinke/e2a5374568d6e3ff942fb1b696e7d5e5
After installing the PRTGapi module, you'll need to modify the following lines:
The script will make a backup of your configuration and should reset the dependencies. The default script will actually set the ping Sensors within your PRTG to be the master dependency object for their corresponding object. You might want to execute it afterwards.
Aug, 2019 - Permalink