Hi,
I'm Trying to get the sensors included in each report, but the api currently not expose this data..
This is the URI:
https://{prtg_server}/api/table.json?content=reports&output=json&columns=objid,name,template,period,schedule,email,numberofsensors,lastrun,nextrun
Is there's a way to get also the sensors included?
Thanks for your help..!
Article Comments
Hello,
that is right, the report template does not resolve API calls for security reasons.
In principle, you could try to combine two report templates into one, as there are templates for a sensor list. However, this is 100% untested and not covered by support.
Report templates include other files, beside header and footer there is a file for the loop over the sensors. Please understand that experimenting with custom templates might not always lead to expected results.
An alternative would be to extract the raw data and process it elsewhere. For data extraction, there is the PRTG Data Exporter, which puts it into SQL. Then you can process the data as you like.
Jan, 2022 - Permalink
Hello,
that is right, the report template does not resolve API calls for security reasons.
In principle, you could try to combine two report templates into one, as there are templates for a sensor list. However, this is 100% untested and not covered by support.
Report templates include other files, beside header and footer there is a file for the loop over the sensors. Please understand that experimenting with custom templates might not always lead to expected results.
An alternative would be to extract the raw data and process it elsewhere. For data extraction, there is the PRTG Data Exporter, which puts it into SQL. Then you can process the data as you like.
Jan, 2022 - Permalink