번호 | 제목 | 등록일 | |
---|---|---|---|
30 | [리눅스팁] 하드디스크 온도모니터링 | ||
안녕하세요. 하나로호스팅입니다. 서버의 시스템 온도등의 모니터링을 위해 프로그램을 찾던중 hddtemp라는 프로그램을 받아서 설치해봤는데 깔끔하게 온도를 잘 보여주는군요. 1.소개 hddtemp프로그램은 S.M.A.R.T (Self-Monitoring Analysis and Reporting Technology) 기능을 사용해 하드디스크의 온도를 알려주는 프로그램입니다. 최근에 나온 하드디스크는 온도센서가 달려나와 온도를 모니터링 할수 있습니다. hddtemp에서 지원되는 하드디스크는 아래링크에서 확인할수 있습니다. http://www.hddtemp.com/ent/hdds.html 2. 다운로드 가장 최근버전은 0.3-beta15이고 아래링크에서 받을수 있습니다. http://www.guzu.net/files/hddtemp-0.3-beta15.tar.bz2 3. 설치 일반적인 프로그램설치와 마찬가지로 압축을 풀고 ./configure && make &&make install 로 설치하시면 되겠고 하드디스크 리스트파일인 hddtemp.db파을을 받은위 (http://www.guzu.net/linux/hddtemp.db) /usr/share/misc에 카피하거나 혹은 configure시 위치를 지정해줄수 있습니다. ./configure --with-db-path=/etc/hddtemp.db hddtemp.db파일은 수시로 갱신된다고 하니 현재 지원하지 않더라도 나중에 지원할수도 있을수 있겠습니다. 가끔씩 확인해보시는것도 좋겠네요. 4. 사용방법 기본적인 사용법은 도움말에 포함되어 있습니다. # hddtemp --help Usage: hddtemp [OPTIONS] [TYPE:]DISK1 [[TYPE:]DISK2]... hddtemp displays the temperature of drives supplied in argument. Drives must support S.M.A.R.T. TYPE could be SATA, PATA or SCSI. If omitted hddtemp will try to guess. -b --drivebase : display database file content that allow hddtemp to recognize supported drives. -D --debug : display various S.M.A.R.T. fields and their values. Useful to find a value that seems to match the temperature and/or to send me a report. (done for every drive supplied). -d --daemon : run hddtemp in TCP/IP daemon mode (port 7634 by default) -f --file=FILE : specify database file to use. -l --listen=addr : listen on a specific interface (in TCP/IP daemon mode). -n --numeric : print only the temperature. -p --port=# : port to listen to (in TCP/IP daemon mode). -s --separator=C : separator to use between fields (in TCP/IP daemon mode). -S --syslog=s : log temperature to syslog every s seconds. -u --unit=[C|F] : force output temperature either in Celius or Fahrenheit. -q --quiet : do not check if the drive is supported. -v --version : display hddtemp version number. -w --wake-up : wake-up the drive if need. -4 : listen on IPv4 sockets only. -6 : listen on IPv6 sockets only. 간단한 실행결과는 아래와 같습니다. # hddtemp /dev/hda /dev/hda: ST380021A: 38 C 특이하게도 hddtemp프로그램을 데몬모드로 띄우고 원격에서 하드디스크의 온도를 모니터링 할수도 있다고 하는데 필요하신분은 -l -p옵션으로 데몬모드로 실행하시면 될듯합니다. 옵션이 꽤 많은데 아주 간단히 온도를 보고자 한다면 hddtemp /dev/hdx 명령으로 온도를 볼수있습니다. % dev/hdx는 자신의 하드디스크명으로 대체됩니다. |