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

Create SNMP Sensor via powershell

Votes:

0

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?

automation powershell prtg snmp windows-services

Created on Jul 6, 2017 3:54:05 PM



Best Answer

Accepted Answer

Votes:

1

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

Created on Jul 11, 2017 12:59:37 AM



3 Replies

Votes:

0

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.

Created on Jul 7, 2017 1:08:41 PM by  Dariusz Gorka [Paessler Support]



Accepted Answer

Votes:

1

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

Created on Jul 11, 2017 12:59:37 AM



Votes:

0

Hi Andrew,

Thank you for your contribution, your answer is marked as the best answer. :)

Best regards.

Created on Jul 11, 2017 8:23:33 AM by  Dariusz Gorka [Paessler Support]




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.