使用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
 
[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

wKiom1iZllCyhIrNAAGKej0Bcxc147.png



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

相关文章
|
1天前
|
Linux Perl
Linux系统的文本处理
Linux系统的文本处理
|
1天前
|
IDE Linux 开发工具
Linux 系统上安装
在Linux和Mac上安装Lua 5.3.0只需下载源码,解压,编译和安装。Windows用户可选择SciTE IDE或通过LuaForWindows在Github或Google Code下载安装。创建 HelloWorld.lua,使用`lua HelloWorld.lua`运行显示"Hello World!"。另可参考LuaDist官方推荐方式安装。
|
2天前
|
Linux API
Linux系统编程之文件编程常用API回顾和文件编程一般步骤
Linux系统编程之文件编程常用API回顾和文件编程一般步骤
Linux系统编程之文件编程常用API回顾和文件编程一般步骤
|
2天前
|
编解码 Ubuntu Linux
|
3天前
|
Linux
|
3天前
|
Linux
请问如何在Linux系统中删除一个磁盘分区
请问如何在Linux系统中删除一个磁盘分区
|
3天前
|
Linux
Linux系统的磁盘管理
Linux系统的磁盘管理
|
监控 Linux Python
Pyinotify – Linux中实时监控文件系统更改
Pyinotify 是一个简单而实用的 Python 模块,它用于通过 inotify 实时监控Linux文件系统的更改。用于在Linux中实时监控文件系统的变化。 作为系统管理员,您可以使用它来监视目标感兴趣的更改,如Web目录或应用程序数据存储目录及其他目录。
2163 0