Install and configure ganglia in CentOS

Source: Internet
Author: User
Tags rrdtool
CentOS installation and configuration ganglia1. download the ganglia source code package and decompress [python] wget http://sourceforge.net/projects/ganglia/files/ganglia%20monitoring%20core/3.1.1%20%28Wien%29/ganglia-3.1.1.tar.g CentOS installation and configuration ganglia 1. download the ganglia source code package and decompress [python] wget http://sourceforge.net/projects/ganglia/files/ganglia%20monitoring%20core/3.1.1%20%28Wien%29/ganglia-3.1.1.tar.g Z/download? Use_mirror = jaist tar-zxvf ganglia-3.1.1.tar.gz 2. install ganglia (install gmetad and gmond) cd ganglia-3.1.1 and install gmetad on the machine that requires web frontend. The configure parameter is [python]. /configure -- with-gmetad -- enable-gexec gmetad depends on the g ++, rrdtool-devel, apr-devel, libconfuse, and libexpat packages. install the preceding dependency packages first: [python] yum install gcc-c ++ yum install rrdtool-devel yum install apr-devel yum solution after libconfuse and libexpat installation fails: install libconfuse: [python] wget http://download.savannah.gnu.org/releases/confuse/confuse-2.7.tar.gz Tar zxvf confuse-2.6.tar.gz. /configure CFLAGS =-fPIC -- disable-nls -- prefix =/usr/local/confuse make install 64bit the machine needs to copy the dynamic link library: [python] mkdir-p/usr/local/confuse/lib64 cp-a-f/usr/local/confuse/lib/*/usr/local/confuse/lib64/install libexpat: [python] wget http://downloads.sourceforge.net/project/expat/expat/2.0.1/expat-2.0.1.tar.gz?use_mirror=cdnetworks-kr-2 Tar zxvf expat-2.0.1.tar.gz. /configure -- prefix =/usr/local/expat make install 64bit the machine needs to copy the dynamic link library: [python] mkdir/usr/local/expat/lib64 cp-a/usr/local/expat/lib/*/usr/local/expat/lib64/after installing the dependency package, run. /configure command: [python]. /configure -- with-gmetad -- enable-gexec -- with-libconfuse =/usr/local/confuse -- with-libexpat =/usr/local/expat when the interface appears, ganglia is successfully installed.: follow the prompts to make ganglia: [python] make install. during The make process, something similar to "mod_python.c: 48: 20: error: Python. h: No such file or directory "error. you need to install python: [python] yum install python-devel to install python before making. on the server side, configure gmetad to create the rrdtool Data Directory: [python] mkdir-p/var/lib/ganglia/rrds mkdir-p/var/lib/ganglia/dwoo chown-R apache: apache/var/lib/ganglia modify/etc/ganglia/gmetad. conf file: [python] vim/etc/ganglia/gmetad. conf data_source "suc" localhost setuid_username "apache" note: If the data_source and setuid_username in the configuration file are commented "#", remove the comment [python] cp gmetad/gmetad. init/etc/init. d/gmetad mkdir/etc/ganglia cp gmetad/gmetad. conf/etc/ganglia/cp-f gmetad/usr/sbin/gmetad chkconfig -- add gmetad start gmetad service: [python] service gmetad start if "Starting GANGLIA gmetad: [OK] "indicates that gmetad is running normally. use telnet localhost 8651 to verify that gmetad is normal. 4. configure gmond [python] cp-f gmond/gmond on the local client. init/etc/init. d/gmond cp-f gmond/usr/sbin/gmond chkconfig -- add gmond -- default_config>/etc/ganglia/gmond. conf modify/etc/ganglia/gmond. conf configuration file: [python] cluster {name = "suc" // and gmetad. the conf configuration file corresponds to the owner = "apache" // and gmetad. the conf configuration file corresponds to latlong = "unspecified" url = "unspecified"} to start the gmond service: [python] service gmond start if "Starting GANGLIA gmond: [OK] "indicates that gmond runs normally. use telnet localhost 8649 to verify that gmond is normal. configure web [python] yum install php-common php-cli php-gd httpd mkdir/var/www/html/ganglia cp-a-f web/*/var/on the server side/ www/html/ganglia restart the http service: [python] service httpd restart 6. open a browser to view ganlia web interface information [python] http://localhost:/ganglia If it is displayed, ganglia is fully installed successfully: The experiment environment: CentOS6.0 x86_64 [python]

 
  
  
  
    

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.