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