prtg_get_sensor_history
Retrieves historic PRTG sensor data over a time range up to 31 days, returning per-channel min, max, mean and last values plus averaged intervals for trend analysis.
Instructions
Historic data of one PRTG sensor over a time range (at most 31 days): per-channel min, max, mean and last over the whole range, plus up to max_rows averaged intervals. Give hours (back from now) or start/end in PRTG server local time. The average interval is picked automatically unless average_seconds is given.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sensor_id": "<sensor_id>"
},
"name": "prtg_get_sensor_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | Range end, "YYYY-MM-DD HH:MM", PRTG server local time. Default now. | |
| hours | No | Hours back from now (1-744). Default 24 when start is not given. | |
| start | No | Range start, "YYYY-MM-DD HH:MM", PRTG server local time. | |
| channels | No | Only channels whose name contains one of these texts. | |
| max_rows | No | Most intervals to list (1-500); summaries always cover all. | |
| sensor_id | Yes | PRTG sensor ID. | |
| average_seconds | No | Averaging interval in seconds: one of 0, 60, 300, 900, 3600, 21600, 86400 (0 = raw values, ranges up to 24 hours only). |