利用 lm_sensors 套件监控服务器温度,电压

利用 lm_sensors 套件监控服务器温度,电压

系统:centos 5.3
 
1、安装lm_sensors
 
yum install lm_sensors
=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 lm_sensors              i386       2.10.7-4.el5     base              513 k
Transaction Summary
=============================================================================
Install      1 Package(s)        
Update       0 Package(s)        
Remove       0 Package(s)        
Total download size: 513 k
Is this ok [y/N]: y
Downloading Packages:
(1/1): lm_sensors-2.10.7- 100% |=========================| 513 kB    00:03    
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: lm_sensors                   ######################### [1/1]
/sbin/ldconfig: /usr/lib/libmemcached.so.2 is not a symbolic link

Installed: lm_sensors.i386 0:2.10.7-4.el5
Complete!
2、检测主机芯片
[root@localhost ~]# modprobe coretemp
[root@localhost ~]# sensors-detect
3、检测主机状况(CPU,风扇等)
[root@localhost ~]# sensors
adm1026-i2c-0-2e
Adapter: SMBus I801 adapter at 08c0
in0:             +1.30 V    (min =    +1.09 V, max =    +1.50 V)        
in1:             +2.60 V    (min =    +2.23 V, max =    +2.96 V)        
in2:             +1.48 V    (min =    +1.27 V, max =    +1.71 V)        
in3:             +2.51 V    (min =    +2.04 V, max =    +2.94 V)        
in4:             +2.52 V    (min =    +2.04 V, max =    +2.94 V)        
in5:             +1.17 V    (min =    +0.95 V, max =    +1.43 V)        
in6:             +1.19 V    (min =    +0.97 V, max =    +1.43 V)        
in7:             +2.49 V    (min =    +0.00 V, max =    +2.49 V)        
in10:            +3.08 V    (min =    +2.70 V, max =    +3.41 V)        
in11:            +3.37 V    (min =    +2.76 V, max =    +3.82 V)        
in12:            +3.35 V    (min =    +2.79 V, max =    +3.78 V)        
in13:            +5.02 V    (min =    +4.14 V, max =    +5.78 V)        
in14:            +1.35 V    (min =    +1.20 V, max =    +1.57 V)        
in15:         +12.00 V    (min = +10.00 V, max = +13.88 V)        
in16:         -11.95 V    (min = -15.28 V, max =    -9.06 V)        
fan0:             -1 RPM    (min =        0 RPM, div = 2)        
fan1:         3341 RPM    (min = 2008 RPM, div = 4)        
fan2:         9507 RPM    (min = 3308 RPM, div = 2)        
fan3:         6490 RPM    (min = 3308 RPM, div = 2)        
fan4:             -1 RPM    (min =        0 RPM, div = 1)        
fan5:             -1 RPM    (min =        0 RPM, div = 2)        
fan6:             -1 RPM    (min =        0 RPM, div = 2)        
fan7:             -1 RPM    (min =        0 RPM, div = 2)        
temp1:             +24°C    (low    =        +5°C, high =     +50°C)    
temp2:             +39°C    (low    =        +5°C, high =     +85°C)    
temp3:            -128°C    (low    =    -128°C, high =    +100°C)         ALARM
vid:            +0.863 V    (VRM Version 10.0)
 
 

你可能感兴趣的:(职场,休闲,lm_sensors)