硬盘温度
root@pve:~# for i in {a,b,c}; do smartctl -x /dev/sd$i|grep 'Current Temp' ; done
Current Temperature: 48 Celsius
Current Temperature: 48 Celsius
Current Temperature: 49 Celsius
root@pve:~#
查看cpu温度
https://www.cnblogs.com/fatenet/articles/10809387.html
$ sudo apt-get install lm-sensors
root@www:~# sensors acpitz-virtual-0 Adapter: Virtual device temp1: +27.8°C (crit = +105.0°C) temp2: +29.8°C (crit = +105.0°C) coretemp-isa-0000 Adapter: ISA adapter Package id 0: +54.0°C (high = +105.0°C, crit = +105.0°C) Core 0: +54.0°C (high = +105.0°C, crit = +105.0°C) Core 1: +52.0°C (high = +105.0°C, crit = +105.0°C)