harumaki.net

インフラ屋の覚書や、ラーメン食べある記とか。

hddtemp

   


hddtempのテスト

インストール

yumでお手軽に。環境はCentOS5.6です。

# yum install hddtemp
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
 * addons: www.ftp.ne.jp
 * base: www.ftp.ne.jp
 * epel: ftp.kddilabs.jp
 * extras: www.ftp.ne.jp
 * rpmforge: fr2.rpmfind.net
 * updates: www.ftp.ne.jp
1614 packages excluded due to repository priority protections
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package hddtemp.i386 0:0.3-0.14.beta15.el5.centos set to be updated
--> Finished Dependency Resolution 

Dependencies Resolved

================================================================================
 Package       Arch       Version                            Repository    Size
================================================================================
Installing:
 hddtemp       i386       0.3-0.14.beta15.el5.centos         extras        50 k

Transaction Summary
================================================================================
Install       1 Package(s)
Upgrade       0 Package(s) 

Total download size: 50 k
Is this ok [y/N]: y
Downloading Packages:
hddtemp-0.3-0.14.beta15.el5.centos.i386.rpm              |  50 kB     00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : hddtemp                                                  1/1

Installed:
  hddtemp.i386 0:0.3-0.14.beta15.el5.centos

Complete!

インストールしたファイルの確認

# rpm -ql hddtemp
/etc/pam.d/hddtemp
/etc/rc.d/init.d/hddtemp
/etc/security/console.apps/hddtemp
/etc/sysconfig/hddtemp
/usr/bin/hddtemp
/usr/sbin/hddtemp
/usr/share/doc/hddtemp-0.3
/usr/share/doc/hddtemp-0.3/COPYING
/usr/share/doc/hddtemp-0.3/ChangeLog
/usr/share/doc/hddtemp-0.3/README
/usr/share/doc/hddtemp-0.3/TODO
/usr/share/doc/hddtemp-0.3/contribs
/usr/share/doc/hddtemp-0.3/contribs/README
/usr/share/doc/hddtemp-0.3/contribs/analyze
/usr/share/doc/hddtemp-0.3/contribs/analyze/graph-field.sh
/usr/share/doc/hddtemp-0.3/contribs/analyze/hddtemp_monitor.sh
/usr/share/doc/hddtemp-0.3/contribs/analyze/plot-field.pl
/usr/share/doc/hddtemp-0.3/contribs/crash.c
/usr/share/doc/hddtemp-0.3/contribs/hddtemp-all.sh
/usr/share/doc/hddtemp-0.3/contribs/wminfo
/usr/share/locale/fr/LC_MESSAGES/hddtemp.mo
/usr/share/locale/pt/LC_MESSAGES/hddtemp.mo
/usr/share/locale/ru/LC_MESSAGES/hddtemp.mo
/usr/share/locale/sv/LC_MESSAGES/hddtemp.mo
/usr/share/man/man8/hddtemp.8.gz
/usr/share/misc/hddtemp.db 

HDDの温度をチェックしてみる

# hddtemp /dev/sda1
/dev/sda1: WDC WD1600JS-22MHB0: 46°C 

そのうちMRTG、Cactiあたりでグラフ化してレポーティングできればOKかと。

 - GNU/Linux, infra, 運用