How can I fetch sensor-settings with http-api?
Modified on 2025-06-10 13:58:51 +0200
Attention: This article is a record of a conversation with the Paessler support team. The information in this conversation is not updated to preserve the historical record. As a result, some of the information or recommendations in this conversation might be out of date.
Important: We no longer maintain this article. The information might be out of date.
Is it possible to fetch sensor-settings by using http-api? I should have the data xml-response similar to '/controls/objectdata.htm?id=xxx&objecttype=sensor'
Article Comments
You can get this with 'getobjectproperty.htm?id=xy&name=abc' for one Setting of an Object with the ID 'xy' and the 'name' of the setting. This works well with a setting that is relatively simple but more complex settings are a bit confusing. Also, this is not directly exported as an XML file. An example is below for getting the scanning interval of a sensor with the ID 1002:
http://PRTGIP/api/getobjectproperty.htm?id=1002&name=Interval
Jan, 2014 - Permalink
Not really nice but it works (needs 4 http-requests per mssql-sensor to have the instance, port, db and statement).
Thank you for the answer
Jan, 2014 - Permalink
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.
You can get this with 'getobjectproperty.htm?id=xy&name=abc' for one Setting of an Object with the ID 'xy' and the 'name' of the setting. This works well with a setting that is relatively simple but more complex settings are a bit confusing. Also, this is not directly exported as an XML file. An example is below for getting the scanning interval of a sensor with the ID 1002:
http://PRTGIP/api/getobjectproperty.htm?id=1002&name=Interval
Jan, 2014 - Permalink