I am looking for a way to create a report that will give me a list of all the devices and sensors associated with the device. I do not need graphics or data just a list in CSV or PDF format.
List of all devices and sensors
Modified on 2025-06-10 20:16:47 +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.
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.
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.
If you're on version 22.2.76.1705 you can use the PRTG API v2 (Seen on the new UI)
Also accessible via http(s):<prtgserver>:8080/api/v2/overview
You can export this with a simple powershell script:
Script starts with sign in, get a token, use the token to extract the data and then save it output.
An example would be(username, password and server URLs need to be updated):
$response = Invoke-RestMethod -Method 'POST' -Body '{"username": "prtgadmin", "password": "prtgadmin"}' 'http://prtgserver/api/v2/session' $token = $response.token $devices = Invoke-RestMethod -Method 'GET' -head @{"Authorization" = "Bearer $token"} 'http://prtgserver/api/v2/devices' $values = $devices | Select-Object -Property id,name,host,status_info | Export-Csv file.csv
May, 2022 - Permalink