Reference Source:
1.http://yhz.me/blog/install-ganglia-on-centos.html
2.http://blog.csdn.net/sdlyjzh/article/details/26560585
Install the basic Php,curl, try to install it, the relevant are installed.
Update source
yum install wget gcc make rsyncwget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.reporpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpmyum makecache
Install dependent packages
Apr-devel
yum install apr-devel
Zlib
yum install zlib-devel
Libconfuse
http://www.nongnu.org/confuse/yum install libconfuse-devel
Expat
http://expat.sourceforge.netyum install expat-devel
Pcre
yum install pcre-devel
Rrd
http://oss.oetiker.ch/rrdtoolyum install rrdtool rrdtool-devel
Installing ganglia
http://ganglia.info/wget http://sourceforge.net/projects/ganglia/files/ganglia%20monitoring%20core/3.6.0/ganglia-3.6.0.tar.gz/download -O ~/ganglia-3.6.0.tar.gztar zxvf ganglia-3.6.0.tar.gzcd ganglia-3.6.0./configure --prefix=/usr/local/ganglia-3.6.0 --enable-gexec --enable-status --with-gmetad --with-librrd --with-libconfuse --with-zlibmakemake install
Configure Settings Soft Links
ln -s /usr/local/ganglia-3.6.0/sbin/gmond /usr/bin/gmond
安装好后,声明Gmond配置文件,并修改:
gmond --default_config > /usr/local/ganglia-3.6.0
/etc/gmond.conf
cluster { name = "Ganglia.monitor" owner = "Unspecified" Latlong = "unspecified" url = "Unspecified"} Udp_send_channel { host = Ganglia.monitor port = 8649 ttl = 1}udp_recv_channel { Port = 8649}tcp_accept_ Channel { port = 8649}
We can add Gmond to the startup script
Cp-f Ganglia-3.6.0/gmond/gmond.init/etc/init.d/gmond
vi/etc/init.d/gmondgmond=/usr/local/ganglia-3.6. 0
Server-Side installation configuration
vi/usr/local/ ganglia-3.6.0
/etc/gmetad.conf
" Nobody " "ganglia.monitor" localhost
Setting up RRD Storage
Mkdir-p/var/lib/ganglia/-R nobody:nobody/var/lib/ganglia/rrds
Install Web
Yum install Php-common php-cli php php-gd httpd
Download
wget http:// sourceforge.net/ Projects/ganglia/files/ganglia-web/3.5.12/ganglia-web-3.5.12.tar.gz/download-o ~/ganglia-web-3.5.12.tar.gz tar zxvf ganglia-web-3.5 . 12 .tar.gz cd ganglia -web-12
modify Makefilevi Makefile # location where Gweb should be installed to (excluding Conf, Dwoo dirs). Gdestdir =/var /www/html/ganglia# Location where default Apache configuration should is installed to. Gconfdir =/etc/ganglia-web# gweb Statedir ( where conf dir and Dwoo templates dir are stored) Gweb_statedir =/var /lib/ganglia-web# Gmetad RootDir (parent location of rrd folder) Gmetad_rootdir =/var /lib/< Span style= "color: #000000;" >gangliaapache_user = Apache
Install make install
3 38649 -J acceptservice iptables saveservice iptables restart
/etc/selinux/configselinux=0
CentOS6.5 installation ganglia3.6