--- Begin Message ---
The endpoint exposes via the REST API to read real-time hardware sensor
data from the system.
Main functionality:
- Temperature monitoring: Returns CPU, disk, and other temperature
sensor readings in Celsius, including optional thresholds (max,
critical) and core/package mappings for CPUs;
- Fan speed monitoring: Returns fan speeds in RPM, along with optional
min/max values, target speeds, and alarm status.
This endpoint uses the PVE::SensorInfo module (submitted separately) to
gather sensor data from the underlying system.
It provides a hierarchical REST API at /nodes/{node}/hardware/sensors/
/sensors -> GET index (returns: temperature, fan)
/temperature -> GET index (returns: cpu, disk, other)
/cpu -> GET CPU temperature data
/disk -> GET disk temperature data
/other -> GET other temperature data
/fan -> GET fan speed data
Davide Guerri (1):
api: add hardware sensors endpoint and API support
PVE/API2/Hardware.pm | 8 +-
PVE/API2/Hardware/Makefile | 1 +
PVE/API2/Hardware/Sensors.pm | 420 +++++++++++++++++++++++++++++++++++
3 files changed, 428 insertions(+), 1 deletion(-)
create mode 100644 PVE/API2/Hardware/Sensors.pm
--
2.50.1 (Apple Git-155)
--- End Message ---
_______________________________________________
pve-devel mailing list
[email protected]
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel