New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

300.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


API - Add device and apply a tempalte

Votes:

0

Your Vote:

Up

Down

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



1 Reply

Votes:

0

Your Vote:

Up

Down

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]



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.