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

Add devices to the PRTG via API

Votes:

0

I would like to add devices to the PRTG via API using python script. Is it possible and how I can do this?

api prtg python

Created on Feb 15, 2021 9:49:49 AM



1 Reply

Votes:

0

Hello,

Thank you for your message.

Regarding what you would like to achieve, I'm afraid that it's not possible to create objects via the API of PRTG. However, you have the possibility to clone a device and change its address after.

Here is the documentation regarding the duplication of objects: https://www.paessler.com/manuals/prtg/object_manipulation#supported_objects_duplicate.

You can use the following API call to modify the IP address/DNS name of the device:

/api/setobjectproperty.htm?id=DeviceID&name=host&value=new_value&username=PRTGuser&passhash=Passhash

You will find the manual here: https://www.paessler.com/manuals/prtg/object_manipulation#object_settings.

If you have questions, let us know.

Regards.

Created on Feb 15, 2021 10:48:19 AM by  Florian Lesage [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.