Gangliaの導入
- Ganglia is a scalable distributed monitoring system for high-performance computing systems such as clusters and Grids. It is based on a hierarchical design targeted at federations of clusters. It leverages widely used technologies such as XML for data representation, XDR for compact, portable data transport, and RRDtool for data storage and visualization. It uses carefully engineered data structures and algorithms to achieve very low per-node overheads and high concurrency. The implementation is robust, has been ported to an extensive set of operating systems and processor architectures, and is currently in use on thousands of clusters around the world. It has been used to link clusters across university campuses and around the world and can scale to handle clusters with 2000 nodes.
1 apacheとphpを導入
yum -y install rrdtool
yum -y install httpd php
yum -y install --enablerepo=epel ganglia ganglia-gmetad ganglia-gmond ganglia-web
/etc/init.d/gmetad start
/etc/init.d/gmond start
/etc/init.d/httpd restart
2 GangliaのフロントエンドへアクセスするためのApache用設定
- httpd.confについての詳細な説明はこちらを参照
2.1 /etc/httpd/conf.d/ganglia.conf
全てのホストからの接続を許可する。
sed -i -e 's/^ *Deny from all/#Deny from all/g' /etc/httpd/conf.d/ganglia.conf;
sed -i -e '/^#Deny from all/a Allow from all' /etc/httpd/conf.d/ganglia.conf;
/etc/init.d/httpd restart
#
# Ganglia monitoring system php web frontend
#
Alias /ganglia /usr/share/ganglia
<Location /ganglia>
Order deny,allow
#Deny from all
#Allow from 127.0.0.1
#Allow from ::1
# Allow from .example.com
Allow from all
</Location>
2.2 デーモンプロセスの自動起動設定
chkconfig gmetad on
chkconfig gmond on
chkconfig --list
gmetad 0:off 1:off 2:on 3:on 4:on 5:on 6:off
gmond 0:off 1:off 2:on 3:on 4:on 5:on 6:off