[시스템] Redhat lm_sensors로 시스템 온도 측정하기

lm_sensors를 이용하여 리눅스에서의 시스템 온도등을 알아보자.

1. 다운받기

http://secure.netroedge.com/~lm78/

위에 주소에서 받을수 있다. 소스버젼으로 설치하거나

혹은 (레드햇 계열이라면) rpmfind.net혹은

#yum install lm_sensors명령어로 설치할수있다

*CenOS나 페도라에는 기본적으로 포함된듯 하다

2. 시스템 스캔

# sensors-detect

이 명령어를 치면 시스템 을 스캔한다

yes/no 이런식으로 할꺼니 말꺼니 계속 물어보는데

기본적으로 yes로 되어있으니 계속 엔터를 치자

그러면 마지막에

To make the sensors modules behave correctly, add these lines to

/etc/modules.conf:

#—-cut here—-

# I2C module options

alias char-major-89 i2c-dev

#—-cut here—-

To load everything that is needed, add this to some /etc/rc* file:

#—-cut here—-

# I2C adapter drivers

modprobe i2c-i801

# I2C chip drivers

modprobe lm85

modprobe eeprom

# sleep 2 # optional

/usr/bin/sensors -s # recommended

#—-cut here—-

WARNING! If you have some things built into your kernel, the list above

will contain too many modules. Skip the appropriate ones! You really should

try these commands right now to make sure everything is working properly.

Monitoring programs won’t work until it’s done.

Do you want to generate /etc/sysconfig/lm_sensors? (YES/no):

Copy prog/init/lm_sensors.init to /etc/rc.d/init.d/lm_sensors

for initialization at boot time.

이런 메시지가 뜬다.

그 표를참고하며 modprobe명령어로 센서 모듈을 올려준다

To make the sensors modules behave correctly, add these lines to

/etc/modules.conf:

#—-cut here—-

# I2C module options

alias char-major-89 i2c-dev

#—-cut here—-

To load everything that is needed, add this to some /etc/rc* file:

#—-cut here—-

# I2C adapter drivers

modprobe i2c-i801

# I2C chip drivers

modprobe lm85

modprobe eeprom

# sleep 2 # optional

/usr/bin/sensors -s # recommended

#—-cut here—-

alias char-major-89 i2c-dev이부분을 /etc/modprobe.conf에 넣어주고

터미널에서 아래와 같이 모듈을 올려준다

#modprobe i2c-i801

#modprobe lm85

#modprobe eeprom

#sensors -s

로 마무리한다.

자 이제

#sensors 라고 치면

[root@centos ~]# sensors

eeprom-i2c-0-50

Adapter: SMBus I801 adapter at d800

Memory type: DDR SDRAM DIMM

Memory size (MB): 512

lm85b-i2c-0-2e

Adapter: SMBus I801 adapter at d800

V1.5: +1.42 V (min = +1.42 V, max = +1.58 V) ALARM

VCore: +1.43 V (min = +0.00 V, max = +0.00 V) ALARM

V3.3: +3.37 V (min = +3.13 V, max = +3.47 V)

V5: +5.16 V (min = +4.74 V, max = +5.26 V)

V12: +12.25 V (min = +11.38 V, max = +12.62 V)

CPU_Fan: 2008 RPM (min = 4000 RPM) ALARM

CPU: +35℃ (low = +10째C, high = +50째C)

Board: +31℃ (low = +10째C, high = +35째C)

Remote: -128℃ (low = +10째C, high = +35째C) ALARM FAULT

CPU_PWM: 64

Fan2_PWM: 0

Fan3_PWM: 77

와 같이 입력 전압 팬의 rpm수와 cpu 시스템 온도가 뜬다.

서진우

슈퍼컴퓨팅 전문 기업 클루닉스/ 상무(기술이사)/ 정보시스템감리사/ 시스존 블로그 운영자

You may also like...

2 Responses

  1. 2022년 6월 22일

    3inelegant

  2. 2023년 1월 26일

    2infanticide

페이스북/트위트/구글 계정으로 댓글 가능합니다.