Subscribe to RSS Feed

Subscribe to Comments Feed

Subscribe to Atom Feed

tech

技術的なことのメモ
  • blog
  • sitemap
  • 紹介

muninでhpサーバの温度表示

by outsider タグ: CentOS, munin
20 08 2009

以下、CentOS、RHESの話。

HPのサイトからHP Support Packを入れておく。psp-8.25.rhel5.i686.en.tar.gzとか。
hp-healthのRPMパッケージが入っていれば、以下のコマンドで各種の温度が取得できる。

# hpasmcli -s "SHOW TEMP"

Sensor   Location              Temp       Threshold
------   --------              ----       ---------
#1        PROCESSOR_ZONE       38C/100F   62C/143F
#2        CPU#1                36C/96F    73C/163F
#3        I/O_ZONE             47C/116F   68C/154F
#4         -                    -          -
#5        POWER_SUPPLY_BAY     37C/98F    55C/131F

ここからプラグインのスクリプトを取得。
hpasmcli_tempというファイル名で/usr/share/munin/plugins/とかに保存。

sudoの設定をします。visudoで、以下を追加

#Defaults    requiretty  <- コメントアウト
nobody ALL = (root) NOPASSWD:/sbin/hpasmcli

以下、お約束で

# ln -s /usr/share/munin/plugins/hpasmcli_temp /etc/munin/plugins/hpasmcli_temp
# /etc/init.d/munin-node restart

No related posts.

0 comments
add to hatena hatena.comment (0) add to del.icio.us (0) add to livedoor.clip (0) add to Yahoo!Bookmark (0) Total: 0

Leave a Reply

返信をキャンセル

google adsense

カテゴリー

  • CentOS
  • php
    • cakephp
  • Windows
  • wordpress

タグ

cakephp CentOS munin php Windows wordpress yum
Design by: Bingo - The Web Design Experts