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


Article Comments

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.


May, 2021 - Permalink