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

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 Download

Top Tags


View all Tags

How to check current Auto-Discovery setups through api?

Votes:

0

Your Vote:

Up

Down

Also can we export the Auto-Discovery data through api? Thank you

api auto-discovery prtg

Created on May 6, 2021 7:48:14 AM by  Dorothea (0) 1



1 Reply

Votes:

0

Your Vote:

Up

Down

Hello Dorothea,

Regarding the auto-discovery settings, I'm afraid that is it necessary to execute a call for each A-D setting of an object, as indicated below:

  • Auto-discovery mode
/api/getobjectproperty.htm?id=SENSORID&name=discoverytype&username=PRTGUSER&passhash=PASSHASH
  • Auto-discovery schedule
/api/getobjectproperty.htm?id=SENSORID&name=discoveryschedule&username=PRTGUSER&passhash=PASSHASH

You can easily get that information with the PowerShell module PRTGAPI, via the command:

Get-Device | Get-ObjectProperty | Select -property AutoDiscoveryMode, AutoDiscoverySchedule

In case the auto-discovery setting is defined to use a specific template (AutoDiscoveryMode = AutomaticTemplate), you can use this API call to get the template name:

/api/getobjectproperty.htm?id=SENSORID&name=devicetemplate&username=PRTGUSER&passhash=PASSHASH

If you have questions, let me know.

Regards.

Created on May 6, 2021 10:45:48 AM by  Florian Lesage [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.