CentOS5 に Munin を入れてみる
Munin はリソース監視ソフト。
MRTGよりお手軽に負荷やトラフィックをグラフ化できる「Munin」 - GIGAZINE
yum で入らないので、rpm 拾ってきて入れます。CentOS5、RHEL5 向け共に無いので、RHEL4用の rpm 入れてみました。
まずは、依存パッケージ突っ込む。たぶん下ので足ります。
# yum install sysstat # yum --enablerepo=rpmforge install perl-rrdtool # yum --enablerepo=rpmforge install perl-HTML-Template # yum --enablerepo=rpmforge install perl-Net-SNMP # yum --enablerepo=rpmforge install perl-LWP-Authen-Wsse # yum --enablerepo=rpmforge install perl-LWP-UserAgent-Determined # yum --enablerepo=rpmforge install perl-Net-Server # yum install perl-DateManip
rpm 落として、インストール。
# wget http://jaist.dl.sourceforge.net/sourceforge/munin/munin-node-1.2.5-1rhel4.noarch.rpm # wget wget http://jaist.dl.sourceforge.net/sourceforge/munin/munin-1.2.5-1rhel4.noarch.rpm # rpm -Uvh munin-node-1.2.5-1rhel4.noarch.rpm # rpm -Uvh munin-1.2.5-1rhel4.noarch.rpm
これで、起動してやればOK。
# /etc/init.d/munin-node start # chkconfig munin-node on
/var/www/html/munin/ にガリガリデータを書き出してくれるので、Apache とか起動しておけば、
http://exsample/munin/ で見れるはず。