Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Ganglia installation tutorial (centos7)

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

The ganglia installation tutorial depends on software

Http://nchc.dl.sourceforge.net/project/pcre/pcre/8.32/pcre-8.32.tar.gz

Tar xvzf pcre-8.32.tar.gz

Cd pcre-8.32

/ configure-prefix=/usr/local

Make & & make install

2. Http://savannah.nongnu.org/download/confuse/confuse-2.7.tar.gz

Tar xvzf confuse-2.7.tar.gz

Cd confuse-2.7

CFLAGS=-fPIC. / configure-prefix=/usr/local-disable-nls

Make CFLAGS=-fPIC

Make CFLAGS=-fPIC install

3. Http://nchc.dl.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz

Tar-xvzf expat-2.1.0.tar.gz

Cd expat-2.1.0

. / configure-prefix=/usr/local

Make & & make install

4. Http://zlib.net/zlib-1.2.8.tar.gz

Tar xvzf zlib-1.2.8.tar.gz

Cd zlib-1.2.8

CFLAGS=-fPIC. / configure-prefix=/usr/local

Make CFLAGS=-fPIC

Make CFLAGS=-fPIC install

5. Ftp://xmlsoft.org/libxml2/libxml2-2.7.8.tar.gz

Tar xvzf libxml2-2.7.8.tar.gz

Cd libxml2-2.7.8

. / configure-prefix=/usr/local-with-zlib=/usr/local

Make & & make install

6. Http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.4.8.tar.gz

Tar xvzf rrdtool-1.4.8.tar.gz

Cd rrdtool-1.4.8

Export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

. / configure-prefix=/usr/local

Make & & make install

7. Http://cznic.dl.sourceforge.net/project/ganglia/ganglia%20monitoring%20core/3.6.0/ganglia-3.6.0.tar.gz

. / configure-enable-gexec

Make & & make install

Ganglia configuration

Gmetad configuration

From the ganglia installation directory, do the following

Cp-a gmetad/gmetad.init / etc/init.d/gmetad

Chkconfig-add gmetad

Chkconfig-level 345 gmetad on

Gmetad-t | tee / usr/local/etc/gmetad.conf

Mkdir-p / var/lib/ganglia/rrds

Chown nobody:nobody / var/lib/ganglia/rrds

Configure gmetad.conf

1. Modify data_source in gmetad.conf

Data_source "hadoop201" hadoop201

Gmond configuration

Cp-a gmond/gmond.init / etc/init.d/gmond

Chkconfig-add gmond

Chkconfig-level 345 gmond on

Gmond-t | tee / usr/local/etc/gmond.conf

Configure gmond.conf

Modify name in cluster to data_source in gmetad.conf

Cluster {name = "hadoop201" owner = "nobody" latlong = "unspecified" url = "unspecified"}

Deployment of Ganglia-web environment

Tar xvzf ganglia-web-3.6.2.tar.gz-C / var/www/html/

Cd / var/www/html/

Mv ganglia-web-3.5.12 ganglia

Chmod-R 777 / var/www/html/ganglia

Cd / var/www/html/ganglia

Cp conf_default.php conf.php

Vim conf.php

Some default configurations in conf.php that are different from the above settings need to be modified:

# Gmetad-webfrontend version. Used to check for updates.#$conf ['gweb_root'] = "/ var/www/html/ganglia"; $conf [' gweb_confdir'] = "/ var/www/html/ganglia"; include_once $conf ['gweb_root']. "/ version.php"; # # 'readonly': No authentication is required. All users may view all resources. No edits are allowed.# 'enabled': Guest users may view public clusters. Login is required to make changes. # An administrator must configure an authentication scheme and ACL rules.# 'disabled': Guest users may perform any actions, including edits. No authentication is required.$conf ['auth_system'] =' readonly';## The name of the directory in ". / templates" which contains the# templates that you want to use. Templates are like a skin for the# site that can alter its look and feel.#$conf ['template_name'] = "default"; # # If you installed gmetad in a directory other than the default# make sure you change it here.## Where gmetad stores the rrd archives.$conf [' gmetad_root'] = "/ var/lib/ganglia"; $conf ['rrds'] = "${conf [' gmetad_root']} / rrds" # Where Dwoo (PHP templating engine) store compiled templates$conf ['dwoo_compiled_dir'] = "${conf [' gweb_confdir']} / dwoo/compiled"; $conf ['dwoo_cache_dir'] = "${conf [' gweb_confdir']} / dwoo/cache"; # Where to store web-based configuration$conf ['views_dir'] = $conf [' gweb_confdir']. '/ conf';$conf [' conf_dir'] = $conf ['gweb_confdir']. '/ conf';1234567891011121314151617181920212223242526272829303132333435363738 problem and its solution

Compile rrdtool error

/. Libs/librrd.so: undefined reference to xmlTextReaderValue@LIBXML2_2.4.30'

. / .libs / librrd.so: undefined reference toxmlTextReaderNodeType@LIBXML2_2.4.30'

. / .libs / librrd.so: undefined reference to xmlStrdup@LIBXML2_2.4.30'

. / .libs / librrd.so: undefined reference toxmlTextReaderName@LIBXML2_2.4.30'

. / .libs / librrd.so: undefined reference to xmlNewTextReaderFilename@LIBXML2_2.4.30'

. / .libs / librrd.so: undefined reference toxmlStrcasestr@LIBXML2_2.4.30'

. / .libs / librrd.so: undefined reference to xmlFree@LIBXML2_2.4.30'

. / .libs / librrd.so: undefined reference toxmlTextReaderRead@LIBXML2_2.4.30'

. / .libs / librrd.so: undefined reference to xmlFreeTextReader@LIBXML2_2.4.30'

. / .libs / librrd.so: undefined reference toxmlTextReaderGetParserLineNumber@LIBXML2_2.6.17'

. / .libs / librrd.so: undefined reference to `xmlStrcasecmp@LIBXML2_2.4.30'

Ganglia compilation must rely on rrdtool, and inexplicable installation errors may occur on different machines for rrdtool installation. If the machine can be connected to the network, you can install it using yum-y install rrdtool method, but after installation, you can still not find the corresponding rrdtool library when compiling rrdtool. You can use the following methods to make ganglia compilation and installation successful:

Download rrdtool-1.4.8.tar.gz, and after decompression, copy the corresponding library in rrdtool-1.4.8/src/.libs to the following directory:

Home/hadoop/ is the path where my native rrdtool-1.4.8 is located:

Cp / home/hadoop/rrdtool-1.4.8/src/.libs/.so / usr/local/lib/

Cp / home/hadoop/rrdtool-1.4.8/src/.libs/*.a / usr/local/lib/

Cp / home/hadoop/rrdtool-1.4.8/src/.libs/*.la / usr/local/lib/

Cp / home/hadoop/rrdtool-1.4.8/src/rrd*.h / usr/local/include

Effect display

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report