There was a problem loading the comments.

How to monitor CPU Temps and FAN Speeds in the Proxmox Hypervisor

Support Portal  »  Knowledgebase  »  Viewing Article

  Print

If you are looking for a way to monitor to server's sensors inside proxmox follow this guide.

This bash script installs a modification to the Proxmox Virtual Environment (PVE) web user interface (UI) to display sensor readings in a flexible and readable manner which can be helpful to monitor your Proxmox Servers Health.

Supported are CPU, NVMe/HDD/SSD temperatures (Celsius/Fahrenheit), fan speeds and ram temperatures.

Promxox temp mod


The modification includes three main steps:

  1. Create backups of the original files located at /usr/share/pve-manager/js/pvemanagerlib.js and /usr/share/perl5/PVE/API2/Nodes.pm in the the backup directory relative to the script location.
  2. Add a new code to the Nodes.pm file that enables host system sensor readings using the sensors command.
  3. Modify the pvemanagerlib.js file to expand the space in the node status view, add new items that display the temperature information in Celsius for CPUs, NVMe drives, HDDs/SSDs and fan speeds (the actual item list depends on the sensor readings available during the installation). The view layout is also adjusted to no longer match the column number setting and always expands to the full width of the browser window. It is also possible to collapse the panel vertically.
  4. Finally, the script also restarts the pveproxy service to apply the changes.

Install

Instructions be performed as 'root', as normal users do not have access to the files.

apt-get install lm-sensors
# lm-sensors need configure, run below to configure your sensors, or refer to lm-sensors manual.
sensors-detect 
wget https://raw.githubusercontent.com/Meliox/PVE-mods/main/pve-mod-gui-sensors.sh
bash pve-mod-gui-sensors.sh install
# Then clear the browser cache to ensure all changes are visualized.


Example of the install process.

root@pve01:~# bash pve-mod-gui-sensors.sh install

Installing the Proxmox VE sensors display mod...

Preparing mod installation...

Detecting support for CPU temperature sensors...
Detected sensors:
coretemp-isa-0000

Do you wish to display temperatures for all cores [C] or just an average temperature per CPU [a]? (C/a):
 a
[info] An average temperature will be displayed per CPU.

Detecting support for RAM temperature sensors...
[warning] No RAM temperature sensors found.

Detecting support for HDD/SDD temperature sensors...
[warning] No HDD/SSD temperature sensors found.

Detecting support for NVMe temperature sensors...
Detected sensors:
nvme-pci-0400

Detecting support for fan speed readings...
[warning] No fan speed sensors found.

Do you wish to display temperatures in degrees Celsius [C] or Fahrenheit [f]? (C/f): c
[info] Temperatures will be presented in degrees Celsius.

Do you wish to enable system information? (Y/n): y
[info] System information will be displayed...

Backup of "/usr/share/perl5/PVE/API2/Nodes.pm" saved to "/root/backup/Nodes.pm.2025-01-29_12-53-55".
Backup of "/usr/share/pve-manager/js/pvemanagerlib.js" saved to "/root/backup/pvemanagerlib.js.2025-01-29_12-53-55".
Sensors' output added to "/usr/share/perl5/PVE/API2/Nodes.pm".
System information output added to "/usr/share/perl5/PVE/API2/Nodes.pm".
Expanded space in "/usr/share/pve-manager/js/pvemanagerlib.js".
Sensor display items added to the summary panel in "/usr/share/pve-manager/js/pvemanagerlib.js".

Restarting PVE proxy...
Installation completed.
[info] Clear the browser cache to ensure all changes are visualized.




Share via
Did you find this article useful?  

Related Articles

Tags

© Rackzar