Install the ganglia monitoring tool on centos

Source: Internet
Author: User
Tags rpmbuild

1. Introduction to ganglia

Ganglia is a distributed monitoring system that has two Daemon: client GangliaMonitoring Daemon (gmond), server GangliaMeta Daemon (gmetad), and GangliaPHP Web

Frontend (web-based Dynamic Access) is a Linux-based software that monitors the running performance of the system. The interface is beautiful and rich, powerful and ganglia relies on a web server to display the cluster status. rrdtool is used to store data and generate graphs. xml parsing is required, so expat is required. libconfuse is required for parsing configuration files.

Ganglia is an open source software for monitoring servers and clusters. It can use graphs to show the cpu load and memory of servers or clusters in the last hour, last day, last week, last month, and last year, network, hard disk, and other indicators.

Ganglia is powerful in that the ganglia server can collect data from all clients in the same network segment through one client, and the ganglia cluster server can collect data from all clients under it through one server. This system design means that a server can manage tens of thousands of machines through different layers. This function is unmatched by other mrtg, nagios, and cacti.
































2) download and install ganglia-3.6.0.tar.gz http://down.51cto.com/data/1112626

[Root @ ws ~] # Cat/etc/issue
CentOS release 6.5 (Final)
Kernel \ r on an \ m

[Root @ ws ~] # Uname-
Linux ws.zdqy.com 2.6.32-431.5.1.el6.i686 #1 SMP Tue Feb 11 21:56:33 UTC 2014 i686 i686 i386 GNU/Linux

[Root @ ws tmp] # tar xf ganglia-3.6.0.tar.gz


[Root @ ws ~] # Yum-y install apr-devel apr-util check-devel cairo-develpango-devel libxml2-devel rpm-build glib2-devel ready-develfreetype-devel fontconfig-devel gcc-c ++ expat- devel python-devellibXrender-devel

[Root @ ws 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%]
[Root @ ws ganglia-3.6.0] # yum clean all

[Root @ ws ganglia-3.6.0] # yum install libconfuse *-y

Installing:
Libconfuse i686 2.7-4. el6 epel 79 k
Libconfuse-devel i686 2.7-4. el6 epel 17 k
[Root @ ws ~] # Yum install libart_lgpl-devel pcre-devel libtool-y

[Root @ ws softs] # rpmbuild-tbganglia-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
+ Cdganglia-3.6.0
+/Bin/rm-rf/root/rpmbuild/BUILDROOT/ganglia-3.6.0-1.i386
+ Exit 0

[Root @ ws softs] # cd/root/rpmbuild/RPMS/
[Root @ ws RPMS] # ls
I386
[Root @ ws RPMS] # cd i386/
[Root @ ws 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


[Root @ ws i386] # rpm-ivh *
Preparing... ######################################## ### [100%]
1: libganglia ####################################### #### [20%]
2: ganglia-gmond ##################################### ###### [40%]
3: ganglia-devel ##################################### ###### [60%]
4: ganglia-gmond-modules-p ################################# ######### [1, 80%]
5: ganglia-gmetad ##################################### ###### [100%]

[Root @ ws ganglia] # yum install httpd-y


[Root @ ws conf] #/etc/init. d/gmond start
Starting GANGLIA gmond: [OK]

[Root @ ws conf] #/etc/init. d/gmetad start
Starting GANGLIA gmetad: [OK]

[Root @ ws softs] # wget http://ftp.jaist.ac.jp/pub/sourceforge/g/ga/ganglia/ganglia-web/3.5.12/ganglia-web-3.5.12.tar.gz

[Root @ ws softs] # tar xf ganglia-web-3.5.12.tar.gz-C/var/www/html/

[Root @ ws html] # Music Video ganglia-web-3.5.12.tar.gz/softs/
[Root @ ws html] # mv ganglia-web-3.5.12 ganglia


Iii. debugging

Http: // 192.168.0.104/ganglia/index. php

Error detected


This is because the corresponding directory is not created and the permission is incorrect.

Create a directory and change the directory permission 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


[Root @ ws ganglia-web] # find.-type d
.
./Cache
./Conf
./Dwoo
./Dwoo/cache
./Dwoo/compiled
./Dwoo/compiled/templates
./Dwoo/compiled/templates/default
[Root @ ws ganglia-web] # pwd

/Var/lib/ganglia-web


Restart httpd and try again.





This is some monitoring information of ganglia Local Machine

You also need to configure the monitored host.


[Root @ localhost yum. repos. d] # rpm-ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

[Root @ localhost yum. repos. d] # yum install ganglia-gmond

















[Root @ ws softs] # rpmbuild-tbganglia-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


Solution

[Root @ ws ~] # 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


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.