I have a Powershell script that will install windows services onto a server and would like to automatically get this service added to the device on PRTG is there a way to do this via Powershell by either calling an API or using another method?
Article Comments
Hello,
I have Powershell module that handles this and other things.
Have a look here. https://thedomainiown.wordpress.com/prtg-related/prtg-relatedprtg-admin-module-function-list/
Look at the functions called Add-prtgDevice and Add-prtgSensorToDevice2
As Dariusz said, the API cannot create a new sensor, but it can clone a sensor from a pool of dummy sensors
Jul, 2017 - Permalink
Hi Andrew,
Thank you for your contribution, your answer is marked as the best answer. :)
Best regards.
Jul, 2017 - Permalink
Hi there,
Unfortunately, it is not possible to create new sensors via the API. You can however create a dummy sensor on a dummy device, pause it and use it to clone it to other devices. You can find the API-Description of cloning in your webinterface under "Setup > PRTG API > Object Manipulation".
Best regards.
Jul, 2017 - Permalink