I'm using the API to grab uptime information on all sensors with a certain tag. Ideally, I would be able to make an API call that will simply report the uptime for each sensor over a certain time span. The cumulative uptime is readily available, but I'd really like to be able to get this uptime for the past week/month/day/etc for multiple sensors. I've looked into a few options. It seems overkill to request historical data for each sensor individually, and I haven't been able to figure out a table request that will output what I need. I'd like to avoid exporting PRTG data into an external database to run the calculations myself. The PRTG reports will output this information, so it would be nice to be able to make ad-hoc requests for various time ranges. Alternatively, I may need to schedule reports on a daily/weekly/monthly basis and create an automated process to consume the data. It just seems like there should be an easier way. Any ideas?


Article Comments

Hi,
Currently the way over reports would be the way to go. The uptime in the reports is a calculated value (from historical data) so I'm afraid there is no direct way to get this figure.
Best regards


Jan, 2016 - Permalink

I was able to find this post, which is much closer to what I want. The only problem is that it requires an individual request for each sensor.

https://helpdesk.paessler.com/en/support/solutions/articles/32113-how-can-i-get-the-downtime-percentage-of-a-sensor-for-a-specific-time-span-via-api


Jan, 2016 - Permalink