今天一台兼容伺服器發生死機問題,可能就是一年前的內存過熱問題,苦於遠程,又沒有監控軟體,於是找了一個lm_sensors 還不錯:
安裝lm_sensors
現在基本上每個Linux都已經有lm_sensors包了,我們主要安裝了就可以了.或者我們也可以通過源文件來自己編譯.
我是使用的源文件,官方網站下載的.
[root@localhost lm_sensors-3.1.2]# make user
Makefile:175: lib/data.ld: No such file or directory
Makefile:175: lib/general.ld: No such file or directory
Makefile:175: lib/error.ld: No such file or directory
Makefile:175: lib/access.ld: No such file or directory
......
[root@localhost lm_sensors-3.1.2]# make user_install testing
mkdir -p /usr/local/lib /usr/local/include/sensors /usr/local/man/man3 /usr/local/man/man5
******************************************************************************
Warning: This is the first installation of the libsensors.so.4*
library files in /usr/local/lib!
You must update the library cache or the userspace tools may fail
or have unpredictable results!
......
[root@localhost lm_sensors-3.1.2]# sensors-detect
# sensors-detect revision 5818 (2010-01-18 17:22:07 0100)
# System: System manufacturer System Product Name
# Board: ASUSTek Computer Inc. DSBV-DX/SAS
This program will help you determine which kernel modules you need
to load to use lm_sensors most effectively. It is generally safe
and recommended to accept the default answers to all questions,
unless you know what you're doing.
Some south bridges, CPUs or memory controllers contain embedded sensors.
Do you want to scan for them? This is totally safe. (YES/no): Yes
Silicon Integrated Systems SIS5595... No
VIA VT82C686 Integrated Sensors... No
VIA VT8231 Integrated Sensors... No
AMD K8 thermal sensors... No
AMD Family 10h thermal sensors... No
AMD Family 11h thermal sensors... No
Intel Core family thermal sensor... Success!
看的出來,支持探測器類型還是很全的.
[root@localhost lm_sensors-3.1.2]# lm_sensors start
Starting lm_sensors: [ OK ]
[root@localhost lm_sensors-3.1.2]# sensors
w83627hf-isa-0290
Adapter: ISA adapter
VCore 1: 3.33 V (min = 0.00 V, max = 0.00 V) ALarm
VCore 2: 3.36 V (min = 0.00 V, max = 0.00 V) ALarm
......
名字不好認,可能要wf 比較好.
[火星人 ] linux硬體監控已經有378次圍觀