Install and configure ganglia in CentOS

Source: Internet
Author: User
Tags rrdtool

CentOS installation configuration ganglia 1. Download the ganglia source package and unzip the [python] wget http://sourceforge.net/projects/ganglia/files/ganglia%20monitoring%20core/3.1.1%20%28Wien%29/ganglia-3.1.1.tar.gz/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 fail to be installed: install libconfuse: [python] wget http: // dow Nload.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 the ganlia web interface information. [python] http: // localhost:/ganglia indicates that ganglia has been fully installed successfully: experiment environment: centOS6.0 x86_64 [python] <pre name = "code" class = "cpp"> <pre name = "code" class = "cpp"> <p> </ pre> </pre>

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.