Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ To install Ganglia     - ORA-12154 TNS could not resolve the specified identifier (Database)

- NaSC using simple mathematical operations on Ubuntu and Elementary OS (Linux)

- Puppet installation and testing (Server)

- How to configure security management services under Linux (Linux)

- Using DOS command to change UNIX administrator password (Linux)

- Ubuntu method for single-card dual-IP (Linux)

- How to prevent page five invisible killer (Linux)

- System Security: Build Linux with LIDS steel castle (Linux)

- CentOS 6.3 compile and install LNMP environment (Server)

- Ubuntu 64-bit installation Adobe Reader 9.5.5 (Linux)

- Eclipse-4.4 crash problem solving under Debian-7.6 (Linux)

- Binary Tree Traversal (Linux)

- Linux disk management practices (Linux)

- Oracle Character Set Summary (Database)

- Ubuntu set Swap Space Tutorial (Linux)

- Linux, grep, sed usage (Linux)

- Difference between TCP and UDP protocols (Linux)

- JavaScript common array manipulation functions and usage (Programming)

- CentOS 6 Install Xen4.2 Virtualization Practice (Linux)

- Java synchronization mechanism: synchronized, wait, notify (Programming)

 
         
  To install Ganglia
     
  Add Date : 2018-11-21      
         
       
         
  Ganglia by the gmond, gmetad and gweb three parts

gmond (Ganglia Monitoring Daemon) is a lightweight service installed on each node need to collect indicator data host. gmond completed indicator data collection the actual meaning on each host, and share data through other nodes in the listener / notification protocol and clusters. Use gmond, you can easily collect a lot of data system metrics, such as CPU, memory, disk, network, and dynamic process data.

gmetad (Ganglia Meta Daemon) is a data source from another gmetad or gmond indicators collected and stored in RRD format to disk service. gmetad specific indicators collected information from a host group provides a simple query mechanism, and supports hierarchical authority, making the creation of the Joint Monitoring domain possible.

gweb (Ganglia Web) gweb use a browser to display the PHP front end gmetad stored data. Under a variety of different metrics data in the Web interface graphically show the operational status of the cluster collection.

Prepare the environment

# Lsb_release -a
LSB Version :: base-4.0-amd64: base-4.0-noarch: core-4.0-amd64: core-4.0-noarch: graphics-4.0-amd64: graphics-4.0-noarch: printing-4.0-amd64: printing-4.0- noarch
Distributor ID: CentOS
Description: CentOS release 6.5 (Final)
Release: 6.5
Codename: Final

S1, installation gmond

Search gmond local software installation package repository
[Root @ stonex ~] # yum search ganglia-gmond
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* Base: centos.ustc.edu.cn
* Extras: centos.ustc.edu.cn
* Updates: centos.ustc.edu.cn
Warning: No matches found for: ganglia-gmond
No Matches found

Display search fails, it may be the current RPM release no Ganglia installation package.

[Root @ stonex ~] # rpm -Uvh \
> Http://dl.Fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
Retrieving http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
warning: /var/tmp/rpm-tmp.L2dC50: Header V3 RSA / SHA256 Signature, key ID 0608b895: NOKEY
Preparing ... ########################################### [100% ]
1: epel-release ########################################### [100 %]
[Root @ stonex ~] #

Filter (first run will download epel / primary_db)
[Root @ stonex ~] # yum search ganglia-gmond
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Omitted some lines ......
ganglia-gmond.x86_64: Ganglia Monitoring daemon
ganglia-gmond-python.x86_64: Ganglia Monitor daemon python DSO and metric modules
Omitted some lines ......
[Root @ stonex ~] #

installation
[Root @ stonex ~] # yum install ganglia-gmond -y
yum install automatically resolve dependencies headache problem

S2, installation gmetad

Installation and gmond same presentation, if the library does not provide local software gmetad, you need to install the EPEL.
[Root @ stonex ~] # yum install ganglia-gmetad -y
Installation will find the following dependencies:
Dependency Installed:
dejavu-fonts-common.noarch 0: 2.30-2.el6 dejavu-lgc-sans-mono-fonts.noarch 0: 2.30-2.el6 dejavu-sans-mono-fonts.noarch 0: 2.30-2.el6 fontpackages- filesystem.noarch 0: 1.41-1.1.el6 rrdtool.x86_64 0: 1.3.8-6.el6

S3, installation gweb

Wiki: http: //sourceforge.net/apps/trac/ganglia/wiki/ganglia-web-2#Installation


Before gweb installation and configuration, check whether
Meet the following demands:
Apache Web Server
PHP 5.2 and later
PHP JSON extension installed and enabled

First install Apache and PHP 5
[Root @ stonex ~] # yum install httpd php
Installation will find the following dependencies:
Dependency Installed:
apr-util-ldap.x86_64 0: 1.3.9-3.el6_0.1 httpd-tools.x86_64 0: 2.2.15-29.el6.centos mailcap.noarch 0: 2.1.31-2.el6 php-cli. x86_64 0: 5.3.3-27.el6_5 php-common.x86_64 0: 5.3.3-27.el6_5

Need to enable the PHP extension of JSON, JSON has been included in PHP 5.2 and later versions.
JSON extension to check the status by checking /etc/php.d/json.ini file, if you have enabled JSON extension in the file should contain a statement similar to the following contents:
extension = json.ini

Download the latest version gweb (https://sourceforge.net/projects/ganglia/files/gweb/)
The latest example of the current version is 3.5.12
[Root @ stonex ~] # wget http://ncu.dl.sourceforge.net/project/ganglia/ganglia-web/3.5.12/ganglia-web-3.5.12.tar.gz
[Root @ stonex down] # tar -zxvf ganglia-web-3.5.12.tar.gz
[Root @ stonex down] # cd ganglia-web-3.5.12

Compile Makefile
[Root @ stonex ganglia-web-3.5.12] # vim Makefile
Some users can view the default configuration:
################################################## ########
# User configurables:
################################################## ########
# Location where gweb should be installed to (excluding conf, dwoo dirs).
GDESTDIR = / usr / share / ganglia-webfrontend


# Location where default apache configuration should be installed to.
GCONFDIR = / etc / ganglia-web


# Gweb statedir (where conf dir and Dwoo templates dir are stored)
GWEB_STATEDIR = / var / lib / ganglia-web


# Gmetad rootdir (parent location of rrd folder)
GMETAD_ROOTDIR = / var / lib / ganglia


APACHE_USER = www-data
################################################## ########

Modify the default configuration:
GDESTDIR = / var / www / html / ganglia2
APACHE_USER = apache
Note: GDESTDIR and APACHE_USER to and APACHE configuration file (/etc/httpd/conf/httpd.conf) in DocumentRoot, apache consistent

S4, status check

Check whether httpd start:
[Root @ stonex ~] # service httpd status
Start httpd:
[Root @ stonex ~] # service httpd start

Check gmetad whether to start:
[Root @ stonex ~] # service gmetad status
Start gmetad:
[Root @ stonex ~] # service gmetad start

Check whether the local gmond start:
[Root @ stonex ~] # service gmond status
Start gmond:
[Root @ stonex ~] # service gmond start

S5, turn off SELinux

If you skip this step, open http: // < server ip address> / ganglia2 the following exception:
There was an error collecting ganglia data (127.0.0.1:8652): fsockopen error: Permission denied

What SELinux that?
http://wiki.centos.org/zh/HowTos/SELinux

View SELinux status:
[Root @ stonex ~] # sestatus
SELinux status: enabled
SELinuxfs mount: / selinux
Current mode: permissive
Mode from config file: enforcing
Policy version: 24
Policy from config file: targeted

Close SELinux:
[Root @ stonex ~] # setenforce 0
setenforce This command can instantly switch Enforcing and Permissive both modes, but these changes will not be retained when the system reboot.
To take effect after the next boot, you need to modify in the / etc / selinux / config SELINUX = the act enforcing.

S6, access Ganglia monitoring platform

http: // < server ip address> / ganglia2 /

Directory "/ ganglia2" GDESTDIR can be modified ganglia-web of the Makefile
     
         
       
         
  More:      
 
- GAMIT learning materials finishing (Linux)
- Create several practical points of high security PHP site (Linux)
- Linux_Logo - output color ANSI Linux distributions logo command-line tool (Linux)
- in no backup ex: error: Xin Tourou ah backup child process has Singles DAT / US person / bin / in no backup ex (Database)
- Use Android Studio and Gradle packaged multi-version APK (Programming)
- Linux PXE unattended installation PXE-E32: TFTP OPen timeout the solution (Linux)
- Thinking in Java study notes - Access modifiers (Programming)
- Use Markdown editor for document work under Linux (Linux)
- xCAT error Unable to dispatch hierarchical sub-command to NORESOLUTION: 3001 (Linux)
- Error code: 2013 Lost connection to MySQL server during query (Database)
- Linux use glibc2 library and crypt () function to generate the user password (Programming)
- Linux system security configuration Collection (Linux)
- Use smem visual display Linux memory usage (Linux)
- Ubuntu 14.04 install AMD graphics driver is fully dual monitor solution (Linux)
- How to use the Docker Machine cluster deployment Swarm (Server)
- Linux Network Programming - raw socket instance: MAC Address Scanner (Programming)
- Compile and install Memcached can not find GCC (Programming)
- Keepalived + HAProxy high availability load balancing (Server)
- Firewall Configuration Red Hat Enterprise Linux 4 (Linux)
- There are more than one server, there is reason to try cloud operating system (Server)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.