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
read more
0 comments

CentOSにphp-5.2をインストール

by outsider タグ: CentOS, yum
20 08 2009

http://www.jasonlitka.com/yum-repository/からリポジトリを追加します。

# rpm --import http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka

/etc/yum.repos.d/utterramblings.repoを作成。中身は

[utterramblings]
name=Jason's Utter Ramblings Repo
baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/
enabled=0
gpgcheck=1
gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka

アップデート

# yum --enablerepo=utterramblings check-update
# yum --enablerepo=utterramblings update php
# yum --enablerepo=utterramblings update pcre php-pear

念のため/etc/yum.repos.d/CentOS-Baseの[base][updates]に

exclude=php*

など追加

read more
0 comments

CentOSにPostgresql-8.2をインストール

by outsider タグ: CentOS, yum
20 08 2009

yumでの管理の方法を元に。。。

/etc/yum.repos.dのCentOS-Base.repoの中の[base]と[updates]セクションの最後に

exclude=postgresql*

を追加

http://yum.pgsqlrpms.org/reporpms/repoview/pgdg-centos.htmlから欲しいバージョンのrpmを取得。

# wget http://yum.pgsqlrpms.org/reporpms/8.2/pgdg-centos-8.2-4.noarch.rpm
# rpm -ivh pgdg-centos-8.2-4.noarch.rpm
# yum update

とかでアップデートされるはずだが、
依存関係でエラーになったので
/etc/yum.repos.d/pgdg-82-centos.repoの[pgdg82]セクションに

exclude=libevent*

を追加。ついでにenabled=0に変更。

read more
0 comments

google adsense

カテゴリー

  • CentOS
  • php
    • cakephp
  • Windows
  • wordpress

タグ

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