使用psensor实时监控Linux系统温度的方法

我有一台普通pc机,系统centos7,开机半年了,使用软件检测温度。对centos不是很完美,只能健康到硬盘,cpu温度。  ubuntu就能完美支持。

安装这个软件没有什么难度,这里只做一下笔记方便以后使用。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
sudo yum install lm_sensors hddtemp -y
sudo yum install gcc gtk3-devel GConf2-devel lm_sensors-devel cppcheck libatasmart-devel libcurl-devel json-c-devel libmicrohttpd-devel help2man libnotify-devel libgtop2-devel make -y
wget https://wpitchoune.net/psensor/files/psensor-1.2.0.tar.gz
tar -zxf psensor-1.2.0.tar.gz
cd psensor-1.2.0
./configure 
make
make install
 
sudo sensors-detect   #后面的内容一路yes,默认回车即可
sudo service lm_sensors start
sudo hddtemp -d /dev/sda
 
[[email protected] ~]# 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
Physical id 0:  +41.0°C  (high = +80.0°C, crit = +100.0°C)
Core 0:         +41.0°C  (high = +80.0°C, crit = +100.0°C)
Core 1:         +41.0°C  (high = +80.0°C, crit = +100.0°C)
Core 2:         +40.0°C  (high = +80.0°C, crit = +100.0°C)
Core 3:         +41.0°C  (high = +80.0°C, crit = +100.0°C)
 
psensor

使用psensor实时监控Linux系统温度的方法



本文转自 yanconggod 51CTO博客,原文链接:http://blog.51cto.com/yanconggod/1895777