New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

200.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free PRTG
Download >>

 

What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

 

Top Tags


View all Tags


Create SNMP Sensor via powershell

Votes:

0

Your Vote:

Up

Down

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 by  CloudTheWolf (0) 1



Best Answer

Accepted Answer

Votes:

1

Your Vote:

Up

Down

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 by  AndrewG (1,783) 2 2



3 Replies

Votes:

0

Your Vote:

Up

Down

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

Your Vote:

Up

Down

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 by  AndrewG (1,783) 2 2



Votes:

0

Your Vote:

Up

Down

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]



Please log in or register to enter your reply.


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.