CentOS Installation Ganglia monitoring tool

Source: Internet
Author: User
Tags rpmbuild

One, ganglia basic introduction

Ganglia it is a distributed monitoring system, where there are two Daemon, each: clientgangliamonitoring Daemon (Gmond) and service-side Gangliameta Daemon (Gmetad), There's also gangliaphp Web

Frontend (Web-based dynamic access) composition is a Linux configuration monitoring system performance software, the interface beautiful, rich, powerful and ganglia and rely on a webserver to show the status of the cluster, with RRDtool to store data and generate graphs, XML parsing is required so expat is required. Configuration file parsing requires libconfuse.

Ganglia is a monitoring server, cluster of open source software, can be used to express the recent one hours, the recent day, the recent week, the recent January. Recent year of server or cluster CPU load, memory, network, hard disk and other indicators.

The power of the ganglia is that the ganglia server can collect all the client data from the same network segment through a single client. The ganglia cluster server can collect all client data from its subordinates through a server. This system design means that a server can manage tens of thousands of machines through different tiers.

This function is unmatched by other mrtg,nagios,cacti.

watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvyxzpbglmyw5z/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/center ">






























Second, download and installganglia-3.6.0.tar.gzhttp://down.51cto.com/data/1112626

[Email protected] ~]# cat/etc/issue
CentOS Release 6.5 (Final)
Kernel \ r on an \m

[Email protected] ~]# uname-a
Linux ws.zdqy.com 2.6.32-431.5.1.el6.i686 #1 SMP Tue Feb 21:56:33 UTC i686 i686 i386 gnu/linux

[Email protected] tmp]# Tar XF ganglia-3.6.0.tar.gz


[Email protected] ~]# yum-y install apr-devel apr-util check-devel cairo-develpango-devel libxml2-devel rpm-build glib2- Devel dbus-develfreetype-devel fontconfig-devel gcc gcc-c++ expat-devel python-devellibxrender-devel

[Email protected] ganglia-3.6.0]# RPM-IVH http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
Retrieving http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
Warning:/var/tmp/rpm-tmp. Ulcpjf:header V3 rsa/sha256 Signature, key ID 0608b895:nokey
Preparing ... ########################################### [100%]
1:epel-release ########################################### [100%]
[email protected] ganglia-3.6.0]# Yum Clean all

[email protected] ganglia-3.6.0]# yum install libconfuse*-y

Installing:
Libconfuse i686 2.7-4.el6 Epel-K
Libconfuse-devel i686 2.7-4.el6 Epel k
[email protected] ~]# Yum install libart_lgpl-devel pcre-devel libtool-y

[Email protected] softs]# RPMBUILD-TB ganglia-3.6.0.tar.gz

checking for unpackaged file (s):/usr/lib/rpm/check-files/root/rpmbuild/buildroot/ Ganglia-3.6.0-1.i386
wrote:/root/rpmbuild/rpms/i386/ganglia-gmetad-3.6.0-1.i386.rpm
Wrote:/root/rpmbuild /rpms/i386/ganglia-gmond-3.6.0-1.i386.rpm
wrote:/root/rpmbuild/rpms/i386/ ganglia-gmond-modules-python-3.6.0-1.i386.rpm
wrote:/root/rpmbuild/rpms/i386/ganglia-devel-3.6.0-1.i386.rpm
wrote:/root/rpmbuild/rpms/i386/libganglia-3.6.0-1.i386.rpm
Executing (%clean):/bin/sh-e/var/tmp/ RPM-TMP.ZQCFRZ
+ umask 022
+ cd/root/rpmbuild/build
+ CD ganglia-3.6.0
+/bin/rm-rf/root/rpmbuild/ Buildroot/ganglia-3.6.0-1.i386
+ exit 0

[Email protected] softs]# cd/root/rpmbuild/rpms/
[[email protected] rpms]# ls
I386
[Email protected] rpms]# CD i386/
[[email protected] i386]# ls
ganglia-devel-3.6.0-1.i386.rpm
ganglia-gmetad-3.6.0-1.i386.rpm
ganglia-gmond-3.6.0-1.i386.rpm
ganglia-gmond-modules-python-3.6.0-1.i386.rpm
libganglia-3.6.0-1.i386.rpm

watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvyxzpbglmyw5z/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/center ">

[Email protected] i386]# RPM-IVH *
Preparing ... ########################################### [100%]
1:libganglia ########################################### [20%]
2:ganglia-gmond ########################################### [40%]
3:ganglia-devel ########################################### [60%]
4:ganglia-gmond-modules-p ########################################### [80%]
5:ganglia-gmetad ########################################### [100%]

[email protected] ganglia]# Yum install httpd-y


[[email protected] conf]#/etc/init.d/gmond start
Starting GANGLIA Gmond: [OK]

[[email protected] conf]#/etc/init.d/gmetad start
Starting GANGLIA Gmetad: [OK]

[Email protected] softs]# wget http://ftp.jaist.ac.jp/pub/sourceforge/g/ga/ganglia/ganglia-web/3.5.12/ Ganglia-web-3.5.12.tar.gz

[Email protected] softs]# tar XF ganglia-web-3.5.12.tar.gz-c/var/www/html/

[Email protected] html]# MV ganglia-web-3.5.12.tar.gz/softs/
[Email protected] html]# mv ganglia-web-3.5.12 ganglia


Third, commissioning

Interview Page http://192.168.0.104/ganglia/index.php

Found an error

watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvyxzpbglmyw5z/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/center ">

Because the corresponding folder is not built and the permissions are incorrect

Create the corresponding folder and change the folder permissions to 777

Mkdir-p/var/www/html/ganglia/dwoo/compiled
Mkdir-p/var/www/html/ganglia/dwoo/cache
chmod 777/var/www/html/ganglia/dwoo/compiled
chmod 777/var/www/html/ganglia/dwoo/cache


watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvyxzpbglmyw5z/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/center ">

[[email protected] ganglia-web]# find. -type D
.
./cache
./conf
./dwoo
./dwoo/cache
./dwoo/compiled
./dwoo/compiled/templates
./dwoo/compiled/templates/default
[Email protected] ganglia-web]# pwd

/var/lib/ganglia-web


And then restart HTTPd, and another interview


watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvyxzpbglmyw5z/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/center ">



This is some of the monitoring information for the ganglia machine.

The following is also required to configure the monitored host.


[Email protected] yum.repos.d]# RPM-IVH http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

[email protected] yum.repos.d]# Yum install Ganglia-gmond

















[Email protected] softs]# RPMBUILD-TB ganglia-3.6.0.tar.gz
error:failed Build Dependencies:
Libpng-devel is needed by ganglia-3.6.0-1.i386
Python-devel is needed by ganglia-3.6.0-1.i386


Workaround

[email protected] ~]# Yum install libpng-devel python-devel-y



Fatal Error:

Errors were detected in your configuration.
    • Unable to create overlay events file:/var/lib/ganglia-web/conf/events.json
    • Unable to create event color map file:/var/lib/ganglia-web/conf/event_color.json
    • Dwoo compiled templates directory '/var/lib/ganglia-web/dwoo/compiled ' is not writeable.
      Please adjust $conf[‘dwoo_compiled_dir‘] .
    • Dwoo Cache directory '/var/lib/ganglia-web/dwoo/cache ' is not writeable.
      Please adjust $conf[‘dwoo_cache_dir‘] .
in/var/www/html/ganglia/eval_conf.php on line 126


Copyright notice: This article blog original articles, blogs, without consent, may not be reproduced.

CentOS Installation Ganglia monitoring tool

Related Article

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.