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

API - Add device and apply a tempalte

Votes:

0

Hello,

I'm trying to automate the monitoring of newly deployed devices.

Is there a way to select device template with API while creating the device ?

I can select the discovery type and schedule, but when it comes to checking device templates, I can't figure out witch argument and value to put in my url.

/api/adddevice.htm?name_=DEVICENAME&host_=IPADDRESS&ipversion_=0&discoverytype_=2&discoveryschedule_=0&id=GROUPID

<error>The validation of at least one of the new objects failed because of the following:<br/><ul><li>Device Template(s): Required field, not defined.</li></ul><br/>The object was not created.</error>

I also thought about creating a Auto discovery Groupe, then adding devices to it, but it requires me to define a range of ip addresses, a list of addresses ... I cant just let it wait for upcoming devices to apply the selected template to them.

Hope I have well explained my issue, and thanks in advance.

auto-discovery device-template groups http-api

Created on Jul 27, 2020 6:34:14 PM



1 Reply

Votes:

0

Hi there,

Please note that we don't provide customization support and therefore we cannot provide help by coding. However, I checked the parameter transferred if you save a auto discovery with a certain template via the browser developer tools and noticed this parameter:

devicetemplate__check: Dell_EqualLogic.odt|Dell EqualLogic||

It seems like that the file name and the id of the device template is entered here.

Created on Jul 28, 2020 7:06:55 AM by  Moritz Heller [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.