install and configure ganglia in cluster base on rhel4
core RPM packages:
ganglia-gmetad-3.0.7-1.i386
ganglia-gmond-3.0.7-1.i386
ganglia-web-3.0.7-1.noarch
ganglia-devel-3.0.7-1.i386
pre-installed packages:
rrdtool-1.2.23-1.el4.rf.i386
perl-rrdtool-1.2.23-1.el4.rf.i386
rrdtool-devel-1.2.23-1.el4.rf.i386
# rpm -ivh perl-rrdtool-* rrdtool-* rrdtool-devel-*
# rpm -ivh ganglia-*
也可自行下载.tar.gz包来编译安装,要细读安装指导,了解配置
文件的设置。
此篇仅作为入门。
# vi /etc/gmetad.conf
modify:
data_source "your_cluster_name" 192.168.88.*
# service gmetad restart
# vi /etc/gmond.conf:
modify:
cluster {
name = "your_cluster_name"
owner = "user_name"
latlong = "unspecified"
url = "unspecified"
}
# service gmond restart
note:
in RHEL4 or higher version operating systems
disable SElinux ;if it's not effective then
edit /etc/selinux/targeted/contexts/files/file_contexts
and add
/var/lib/ganglia/rrds(/.*)?
system_u:object_r:httpd_sys_script_exec_t
then run: setfiles file_contexts /var/lib/ganglia/rrds/
that's all.
阅读(690) | 评论(0) | 转发(0) |