Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ RHEL 7.1 compile and install Ganglia 3.7.1     - How Datadog monitor Nginx (Server)

- Batch download files using the explorer under Windows Server 2008 R2 (Server)

- CentOS 6.5 install Maven and Nexus warehouse agent (Server)

- ActiveMQ5.10.2 version configuration JMX (Linux)

- Java integrated development environment common set of operations (Linux)

- Executable file format Explanation under Linux (Linux)

- UNIX file permissions in the "set user ID bit" (Linux)

- GDB remote connections RX Probe online debug program (Programming)

- DataGuard the MRP can not start to analyze and solve problems (Database)

- KVM virtualization nested configuration (Server)

- Linux how to handle file names that contain spaces and special characters (Linux)

- Android SDK Manager can not update the domestic solutions (Linux)

- Ubuntu users how to install the latest Nvidia graphics drivers (Linux)

- CentOS yum install LNMP PHP5.4 version (Server)

- Android imitation UC browser scroll up and down functions (Programming)

- The lambda expression Java8 (constructor references) (Programming)

- Zabbix Agent for Linux Installation and Configuration (Server)

- How Linux system password security guarantee (Linux)

- Linux kernel RCU (Read Copy Update) lock Brief - prequel (Linux)

- Android Fragment really fully resolve (Programming)

 
         
  RHEL 7.1 compile and install Ganglia 3.7.1
     
  Add Date : 2016-05-04      
         
         
         
  1. Installation depends

yum groupinstall -y "Development tools" "Basic Web Server"

yum install pcre pcre-devel apr-devel apr-util-devel apr-util zlib-devel zlib rrdtool-devel rrdtool python-devel php

2. Add users

useradd ganglia

passwd ganglia
3. From the source code compiler installation, install confuse.

cd / usr / local / src

#install confuse
wget http://download.savannah.gnu.org/releases/confuse/confuse-2.7.tar.gz
tar zxvf confuse-2.7.tar.gz
cd confuse-2.7 /
../configure CFLAGS = -fPIC -disable-nls
make && make install
Then compile and install ganglia

wget http://sourceforge.net/projects/ganglia/files/ganglia%20monitoring%20core/3.7.1/ganglia-3.7.1.tar.gz/download

mv download ganglia-3.7.1.tar.gz
tar zxvf ganglia-3.7.1.tar.gz
cd ganglia-3.7.1 /
./configure --prefix = / usr / local / ganglia --with-gmetad --enable-gexec --sysconfdir = / etc / ganglia --with-python = / usr / bin / python
make && make install
4. Configure gmetad and gmond.

cp gmetad / gmetad.conf / etc / ganglia /

/ Usr / local / ganglia / sbin / gmond -t | tee /etc/ganglia/gmond.conf
First configure gmetad.

vim /etc/ganglia/gmetad.conf

data_source "my cluster" YOUR_FQDN
# Setuid_username "nobody"
setuid_username "ganglia"
Then configure gmond.

vim /etc/ganglia/gmond.conf

setuid = yes
#user = nobody
user = ganglia
udp_send_channel {
      bind_hostname = yes # Highly recommended, soon to be default.
                      # This option tells gmond to use a source address
                      # That resolves to the machine
See gmond python extensions ensure modpython.so been compiled.

locate modpython.so

/usr/local/ganglia/lib64/ganglia/modpython.so
#create gmond python directory
mkdir -p / usr / local / ganglia / lib64 / ganglia / python_modules
/ Usr / local / ganglia / sbin / gmond -d10
# Should be able to see the loaded module: python_module
#copy python module / py.conf
cp /usr/local/src/ganglia-3.7.1/gmond/python_modules/*/*.py / usr / local / ganglia / lib64 / ganglia / python_modules
cp /usr/local/src/ganglia-3.7.1/gmond/python_modules/conf.d/*.pyconf /etc/ganglia/conf.d
Configuring startup items:

cp gmetad / gmetad.init /etc/rc.d/init.d/gmetad

cp gmond / gmond.init /etc/rc.d/init.d/gmond
vim /etc/init.d/gemtad(edit these)
        # GMETAD = / usr / sbin / gmetad
        GMETAD = / usr / local / ganglia / sbin / gmetad
        #daemon $ GMETAD
        daemon $ GMETAD -c /etc/ganglia/gmetad.conf
vim /etc/init.d/gmond (edit these)
        # GMOND = / usr / sbin / gmond
        GMOND = / usr / local / ganglia / sbin / gmond
        #daemon $ GMOND
        daemon $ GMOND -c /etc/ganglia/gmond.conf
Systemd service configuration

vim /usr/lib/systemd/system/gmetad.service(edit these lines)

[Service]
Type = forking
# PIDFile = / usr / local / ganglia / var / run / gmetad.pid
PIDFile = / var / run / gmetad.pid
# ExecStart = / usr / local / ganglia / sbin / gmetad --pid-file = / usr / local / ganglia / var / run / gmetad.pid
ExecStart = / usr / local / ganglia / sbin / gmetad -c /etc/ganglia/gmetad.conf --pid-file = / var / run / gmetad.pid
EnvironmentFile = - / etc / ganglia / default / gmetad

vim /usr/lib/systemd/system/gmond.service(edit these lines)

[Service]
Type = forking
# PIDFile = / usr / local / ganglia / var / run / gmond.pid
PIDFile = / var / run / gmond.pid
# ExecStart = / usr / local / ganglia / sbin / gmond --pid-file = / usr / local / ganglia / var / run / gmond.pid
ExecStart = / usr / local / ganglia / sbin / gmond -c /etc/ganglia/gmond.conf --pid-file = / var / run / gmond.pid
Create a directory for rrdtool:

mkdir -p / var / lib / ganglia / rrds

chown ganglia: ganglia / var / lib / ganglia / rrds
Start the service:

systemctl daemon-reload

systemctl start gmetad
systemctl start gmond
At this point, netstat can see the monitor port, you can telnet localhost 8649, to see the xml, ps -ef confirmed gmetad are indeed ganglia and gmond users running under "/ var / lib / ganglia / rrds" directory file generation.

netstat -tnlp

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID / Program name
tcp 0 0 0.0.0.0:8649 0.0.0.0:* LISTEN 18465 / gmond
tcp 0 0 0.0.0.0:8651 0.0.0.0:* LISTEN 17783 / gmetad
tcp 0 0 0.0.0.0:8652 0.0.0.0:* LISTEN 17783 / gmetad

5. Configure ganglia-web

wget http://sourceforge.net/projects/ganglia/files/ganglia-web/3.7.1/ganglia-web-3.7.1.tar.gz

tar xzvf ganglia-web-3.7.1.tar.gz
vi Makefile (Edit these)
GDESTDIR = / var / www / html / ganglia
APACHE_USER = apache
ZZ
make install
6. From the GUI login.

http: // YOUR_IP / ganglia /
     
         
         
         
  More:      
 
- Python data types summary (Programming)
- The Concept and Semantics of Java Memory Model (Programming)
- Ubuntu 12.04 64-bit installation Redmine + Git + ReviewBoard (Linux)
- Can not empty the Recycle Bin to repair problems in Ubuntu 14.04 (Linux)
- Ubuntu 14.04 VirtualBox can not start solution (Linux)
- C ++ CBitmap, HBitmap, Bitmap difference and contact (Programming)
- Upgrade installation manual CentOS6.5 GCC4.8.2 (Linux)
- Kubuntu 14.04 desktop to the user how to upgrade KDE 4.13.2 (Linux)
- openSUSE 13.1 / 13.2 installation SoundConverter 2.1.2 (Linux)
- Help you make Git Bisect (Linux)
- Linux commands to access the cheat sheet (Linux)
- The lambda expression Java8 (constructor references) (Programming)
- Create several practical points of high security PHP site (Linux)
- How to install or upgrade to the Linux kernel in Ubuntu 4.2 (Linux)
- Use SocketServer write a sockets program (Programming)
- Linux C source code (Ascii HexToBinary: Converts hexadecimal string format ASCII codes) (Programming)
- Mutt - an email client that sends messages through the terminal (Linux)
- How to install the client sqlplus under linux (Database)
- Let you Fun Ubuntu desktop eleven weapon (Linux)
- Oracle ordinary users show parameter method (Database)
     
           
     
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.