Linuxサーバー機のCPU温度を確認する

段々と暑い日が続いているので、サーバー機の温度管理が気になる所です。
そこで何か温度管理してくれるツールは無いかと検索した所、lm_sensorsという物があるらしいので
早速入れてみました。

#yumからインストール
#yum install lm_sensors
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.nus.edu.sg
 * updates: mirror.nus.edu.sg
 * addons: mirror.nus.edu.sg
 * extras: mirror.nus.edu.sg
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
There are unfinished transactions remaining. You mightconsider running yum-complete-transaction first to finish them.
–> Running transaction check
—> Package lm_sensors.i386 0:2.10.7-4.el5 set to be updated
–> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
 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:
lm_sensors-2.10.7-4.el5  7% [=             ]  0.0 B/s |  40 kB     –:– ETA
lm_sensors-2.10.7-4.el5 46% [======-       ] 300 kB/s | 240 kB     00:00 ETA
lm_sensors-2.10.7-4.el5.i386.rpm                      | 513 kB     00:00    
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : lm_sensors                                        [1/1]

Installed: lm_sensors.i386 0:2.10.7-4.el5
Complete!

#設定を行う—>正直よくわからないが、見て欲しい対象を選択しているようです。
#sensors-detect
# sensors-detect revision 5291 (2008-06-23 23:40:46 -0700)

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.

We can start with probing for (PCI) I2C or SMBus adapters.
Do you want to probe now? (YES/no): y
Probing for PCI bus adapters…
Use driver `i2c-i801′ for device 0000:00:1f.3: Intel 82801G ICH7

We will now try to load each adapter module in turn.
Module `i2c-i801′ already loaded.
If you have undetectable or unsupported I2C/SMBus adapters, you can have
them scanned by manually loading the modules before running this script.

To continue, we need module `i2c-dev’ to be loaded.
Do you want to load `i2c-dev’ now? (YES/no): y    <—————————-yesに
Module loaded successfully.

We are now going to do the I2C/SMBus adapter probings. Some chips may
be double detected; we choose the one with the highest confidence
value in that case.
If you found that the adapter hung after probing a certain address,
you can specify that address to remain unprobed.

Next adapter: SMBus I801 adapter at 2000 (i2c-0)
Do you want to scan it? (YES/no/selectively): y   <—————————-yesに
Client found at address 0x2d
Probing for `National Semiconductor LM78’…                No
Probing for `National Semiconductor LM78-J’…              No
Probing for `National Semiconductor LM79’…                No
Probing for `National Semiconductor LM80’…                No
Probing for `National Semiconductor LM85 or LM96000’…     No
Probing for `Analog Devices ADM1027, ADT7460 or ADT7463’… No
Probing for `SMSC EMC6D100, EMC6D101 or EMC6D102’…        No
Probing for `Analog Devices ADT7476’…                     No
Probing for `Andigilog aSC7611’…                          No
Probing for `Andigilog aSC7621’…                          No
Probing for `National Semiconductor LM87’…                No
Probing for `Winbond W83781D’…                            No
Probing for `Winbond W83782D’…                            No
Probing for `Winbond W83783S’…                            No
Probing for `Winbond W83792D’…                            No
Probing for `Winbond W83791SD’…                           No
Probing for `Winbond W83627HF’…                           No
Probing for `Winbond W83627EHF’…                          No
Probing for `Winbond W83627DHG’…                          No
Probing for `Asus AS99127F (rev.1)’…            &
nbsp;         No
Probing for `Asus AS99127F (rev.2)’…                      No
Probing for `Asus ASB100 Bach’…                           No
Probing for `Winbond W83L784R/AR/G’…                      No
Probing for `Winbond W83L785R/G’…                         No
Probing for `Genesys Logic GL518SM Revision 0x00’…        No
Probing for `Genesys Logic GL518SM Revision 0x80’…        No
Probing for `Genesys Logic GL520SM’…                      No
Probing for `Genesys Logic GL525SM’…                      No
Probing for `Analog Devices ADM9240’…                     No
Probing for `Dallas Semiconductor DS1780’…                No
Probing for `National Semiconductor LM81’…                No
Probing for `Analog Devices ADM1026’…                     No
Probing for `Analog Devices ADM1025’…                     No
Probing for `Philips NE1619’…                             No
Probing for `Analog Devices ADM1030’…                     No
Probing for `Analog Devices ADM1031’…                     No
Probing for `VIA VT1211 (I2C)’…                           No
Probing for `ITE IT8712F’…                                No
Probing for `ALi M5879’…                                  No
Probing for `SMSC LPC47M15x/192/292/997’…                 Success!
    (confidence 6, driver `smsc47m192′)
Probing for `Fintek F75387SG/RG’…                         No
Probing for `Analog Devices ADM1024’…                     No
Probing for `Winbond W83791D’…                            No
Client found at address 0x50
Probing for `Analog Devices ADM1033’…                     No
Probing for `Analog Devices ADM1034’…                     No
Probing for `SPD EEPROM’…                                 Yes
    (confidence 8, not a hardware monitoring chip)
Probing for `EDID EEPROM’…                                No

Some chips are also accessible through the ISA I/O ports. We have to
write to arbitrary I/O ports to probe them. This is usually safe though.
Yes, you do have ISA I/O ports even if you do not have any ISA slots!
Do you want to scan the ISA I/O ports? (YES/no): y   <—————————-yesに
Probing for `National Semiconductor LM78′ at 0x290…       No
Probing for `National Semiconductor LM78-J’ at 0x290…     No
Probing for `National Semiconductor LM79′ at 0x290…       No
Probing for `Winbond W83781D’ at 0x290…                   No
Probing for `Winbond W83782D’ at 0x290…                   No

Some Super I/O chips may also contain sensors. We have to write to
standard I/O ports to probe them. This is usually safe.
Do you want to scan for Super I/O sensors? (YES/no): y   <—————————-yesに
Probing for Super-I/O at 0x2e/0x2f
Trying family `National Semiconductor’…                   No
Trying family `SMSC’…                                     Yes
Found `SMSC LPC47M15x/192/997 Super IO Fan Sensors’         Success!
    (address 0x680, driver `smsc47m1′)
Probing for Super-I/O at 0x4e/0x4f
Trying family `National Semiconductor’…                   No
Trying family `SMSC’…                                     No
Trying family `VIA/Winbond/Fintek’…                       No
Trying family `ITE’…                                      No

Some south bridges, CPUs or memory controllers may also contain
embedded sensors. Do you want to scan for them? (YES/no): y<——————–yesに
Silicon Integrated Systems SIS5595…                       No
VIA VT82C686 Integrated Sensors…                    &n
bsp;     No
VIA VT8231 Integrated Sensors…                            No
AMD K8 thermal sensors…                                   No
AMD K10 thermal sensors…                                  No
Intel AMB FB-DIMM thermal sensor…                         No

Now follows a summary of the probes I have just done.
Just press ENTER to continue:   <—————————-Enterキー

Driver `smsc47m192′ (should be inserted):
  Detects correctly:
  * Bus `SMBus I801 adapter at 2000′
    Busdriver `i2c-i801′, I2C address 0x2d
    Chip `SMSC LPC47M15x/192/292/997′ (confidence: 6)

Driver `smsc47m1′ (should be inserted):
  Detects correctly:
  * ISA bus, address 0x680
    Chip `SMSC LPC47M15x/192/997 Super IO Fan Sensors’ (confidence: 9)

Do you want to overwrite /etc/sysconfig/lm_sensors? (YES/no): y   <————————yesに
lm_sensors を起動中:                                       [  OK  ]
[root@1-east ~]# lsmod
Module                  Size  Used by
smsc47m1               12357  0
i2c_isa                 9152  1 smsc47m1
smsc47m192             18513  0
hwmon_vid               6849  1 smsc47m192
i2c_dev                12613  0
autofs4                24261  2
hidp                   23105  2
rfcomm                 42457  0
l2cap                  29505  10 hidp,rfcomm
bluetooth              53797  5 hidp,rfcomm,l2cap
sunrpc                144765  1
ip_conntrack_ftp       11569  0
ip_conntrack_netbios_ns     6977  0
ipt_REJECT              9537  1
xt_state                6209  10
ip_conntrack           52897  3 ip_conntrack_ftp,ip_conntrack_netbios_ns,xt_state
nfnetlink              10713  1 ip_conntrack
iptable_filter          7105  1
ip_tables              17029  1 iptable_filter
ip6t_REJECT             9409  1
xt_tcpudp               7105  25
ip6table_filter         6849  1
ip6_tables             18053  1 ip6table_filter
x_tables               17349  6 ipt_REJECT,xt_state,ip_tables,ip6t_REJECT,xt_tcpudp,ip6_tables
dm_multipath           24013  0
scsi_dh                11713  1 dm_multipath
video                  21193  0
hwmon                   7365  2 smsc47m1,smsc47m192
backlight              10049  1 video
sbs                    18533  0
i2c_ec                  9025  1 sbs
button                 10705  0
battery                13637  0
asus_acpi              19289  0
ac                      9157  0
ipv6                  261473  31 ip6t_REJECT
xfrm_nalgo             13381  1 ipv6
crypto_api             12609  1 xfrm_nalgo
lp                     15849  0
snd_hda_intel         343537  1
snd_seq_dummy           7877  0
sr_mod                 19941  0
cdrom                  36577  1 sr_mod
snd_seq_oss            32577  0
snd_seq_midi_event     11073  1 snd_seq_oss
snd_seq                49585  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device         11725  3 snd_seq_dummy,snd_seq_oss,snd_seq
snd_pcm_oss            42817  0
snd_mixer_oss          19009  1 snd_pcm_oss
snd_pcm                72133  2 snd_hda_intel,snd_pcm_oss
i2c_i801               11725  0
via_velocity           34789  0
i2c_co
re               23745  6 smsc47m1,i2c_isa,smsc47m192,i2c_dev,i2c_ec,i2c_i801
parport_pc             29157  1
sg                     36189  0
parport                37513  2 lp,parport_pc
serio_raw              10693  0
pcspkr                  7105  0
snd_timer              24517  2 snd_seq,snd_pcm
snd_page_alloc         14281  2 snd_hda_intel,snd_pcm
snd_hwdep              12869  1 snd_hda_intel
snd                    55237  11 snd_hda_intel,snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer,snd_hwdep
soundcore              11553  1 snd
crc_ccitt               6337  1 via_velocity
dm_raid45              66509  0
dm_message              6977  1 dm_raid45
dm_region_hash         15681  1 dm_raid45
dm_mem_cache            9537  1 dm_raid45
dm_snapshot            22245  0
dm_zero                 6209  0
dm_mirror              23877  0
dm_log                 14529  3 dm_raid45,dm_region_hash,dm_mirror
dm_mod                 62201  11 dm_multipath,dm_raid45,dm_snapshot,dm_zero,dm_mirror,dm_log
ata_piix               23621  2
libata                156677  1 ata_piix
sd_mod                 25153  3
scsi_mod              141589  5 scsi_dh,sr_mod,sg,libata,sd_mod
ext3                  124361  2
jbd                    56937  1 ext3
uhci_hcd               25421  0
ohci_hcd               24681  0
ehci_hcd               33357  0

#恐る恐る実行してみます。
# sensors
smsc47m192-i2c-0-2d
Adapter: SMBus I801 adapter at 2000
+2.5V:     +2.54 V  (min =  +0.00 V, max =  +3.32 V)  
VCore:     +1.15 V  (min =  +0.00 V, max =  +2.99 V)  
+3.3V:     +3.32 V  (min =  +0.00 V, max =  +4.38 V)  
+5V:       +4.97 V  (min =  +0.00 V, max =  +6.64 V)  
+12V:     +12.25 V  (min =  +0.00 V, max = +15.94 V)  
VCC:       +3.33 V  (min =  +0.00 V, max =  +4.38 V)  
+1.5V:     +1.56 V  (min =  +0.00 V, max =  +1.99 V)  
+1.8V:     +1.77 V  (min =  +0.00 V, max =  +2.39 V)  
Chip Temp: +39.0°C  (low  =  -127°C, high =  +127°C) 
CPU Temp:  +49.0°C  (low  =  -127°C, high =  +127°C) <—–ここにCPU温度が出ています
Sys Temp:  +43.0°C  (low  =  -127°C, high =  +127°C) 
vid:      +2.050 V  (VRM Version 8.2)

smsc47m1-isa-0680
Adapter: ISA adapter
fan1:        0 RPM  (min = 1280 RPM, div = 4)          ALARM
fan2:        0 RPM  (min = 1280 RPM, div = 4)          ALARM

かれこれ2週間以上24時間フル稼働しているので少し高目になっていて、室温は27度
これから真夏になると思うと+10度はいくと思うので、少し冷却を考えておかないといけないので
大型ファンを付ける事で対応しないといけなそうですね。熱いとハードの寿命が短くなりますし・・・

カテゴリー: Linux パーマリンク