proxmoxでマシンのCPU温度表示する方法を記載します。
proxmoxはDebianベースのため、ubuntuのlm-sensorsをインストールするだけでCPUの温度確認ができます。
proxmoxのシェルからaptでlm-sensorsをインストールします。
# apt install lm-sensors
第7世代Core i7-7700kマシンで温度確認をしてみます。
# sensors pch_skylake-virtual-0 Adapter: Virtual device temp1: +35.5°C coretemp-isa-0000 Adapter: ISA adapter Package id 0: +35.0°C (high = +80.0°C, crit = +100.0°C) Core 0: +31.0°C (high = +80.0°C, crit = +100.0°C) Core 1: +35.0°C (high = +80.0°C, crit = +100.0°C) Core 2: +29.0°C (high = +80.0°C, crit = +100.0°C) Core 3: +32.0°C (high = +80.0°C, crit = +100.0°C)
temp1=35.5℃とわかります。
CPU世代にもよりますが、/sys/class/thermal/thermal_zone0/tempの値でもCPU温度が確認できます。
# cat /sys/class/thermal/thermal_zone0/temp 36000 =36.000℃
第14世代Core i7-14700マシンではNVMe M.2 SSDの温度もわかります。
参考として/sys/class/thermal/thermal_zone0/tempとlm-sensorsの値を比較してみました。
# cat /sys/class/thermal/thermal_zone0/temp 27800 # sensors coretemp-isa-0000 Adapter: ISA adapter Package id 0: +47.0°C (high = +80.0°C, crit = +100.0°C) Core 0: +44.0°C (high = +80.0°C, crit = +100.0°C) Core 4: +42.0°C (high = +80.0°C, crit = +100.0°C) Core 8: +43.0°C (high = +80.0°C, crit = +100.0°C) Core 12: +41.0°C (high = +80.0°C, crit = +100.0°C) Core 16: +42.0°C (high = +80.0°C, crit = +100.0°C) Core 20: +42.0°C (high = +80.0°C, crit = +100.0°C) Core 24: +40.0°C (high = +80.0°C, crit = +100.0°C) Core 28: +42.0°C (high = +80.0°C, crit = +100.0°C) Core 32: +43.0°C (high = +80.0°C, crit = +100.0°C) Core 33: +43.0°C (high = +80.0°C, crit = +100.0°C) Core 34: +43.0°C (high = +80.0°C, crit = +100.0°C) Core 35: +43.0°C (high = +80.0°C, crit = +100.0°C) Core 36: +42.0°C (high = +80.0°C, crit = +100.0°C) Core 37: +42.0°C (high = +80.0°C, crit = +100.0°C) Core 38: +42.0°C (high = +80.0°C, crit = +100.0°C) Core 39: +43.0°C (high = +80.0°C, crit = +100.0°C) Core 40: +43.0°C (high = +80.0°C, crit = +100.0°C) Core 41: +43.0°C (high = +80.0°C, crit = +100.0°C) Core 42: +43.0°C (high = +80.0°C, crit = +100.0°C) Core 43: +43.0°C (high = +80.0°C, crit = +100.0°C) i350bb-pci-0100 Adapter: PCI adapter loc1: +50.0°C (high = +120.0°C, crit = +110.0°C) acpitz-acpi-0 Adapter: ACPI interface temp1: +27.8°C nvme-pci-0200 Adapter: PCI adapter Composite: +36.9°C (low = -40.1°C, high = +83.8°C) (crit = +87.8°C) Sensor 1: +56.9°C (low = -273.1°C, high = +65261.8°C) Sensor 2: +36.9°C (low = -273.1°C, high = +65261.8°C)
/sys/class/thermal/thermal_zone0/tempの値は、ACPIの温度(=27.8℃)が入っていました。
CPU core温度(=47.0℃)は/sys/devices/platform/coretemp.0/temp[0-9]_inputに入っているようです。
またマザボのチップセットにもよるのでしょうが、nvme M.2 SSDの温度がわかるのはありがたいです。
lm-sensorsは世代別の見分けもやってくれるようで、手軽に温度確認ができます。