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

How to check current Auto-Discovery setups through api?

Votes:

0

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



1 Reply

Votes:

0

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]




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.