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

时间:2017-02-08 00:24:30   收藏:0   阅读:1233

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

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

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

[root@hddcluster2 ~]# 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

技术分享

本文出自 “禅剑一如” 博客,请务必保留此出处http://yanconggod.blog.51cto.com/1351649/1895777

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!