当前位置:网站首页>Installation and deployment of ganglia

Installation and deployment of ganglia

2022-06-24 23:16:00 Programmer Jiuan

Flume Deploy Ganglia And web page permissions

Flume Data flow monitoring Ganglia Installation and deployment

1) install httpd Services and php

[[email protected] flume]$ sudo yum -y install httpd php

2) Install other dependencies

[[email protected] flume]$ sudo yum -y install rrdtool perl-rrdtool rrdtool-devel
[[email protected] flume]$ sudo yum -y install apr-devel

3) install ganglia because CentOs The default source is none Ganglia The source of
So you need to install this yum -y install epel-release

[[email protected] flume]$ sudo yum -y install ganglia-gmetad

[[email protected] flume]$ sudo yum -y install ganglia-web

[[email protected] flume]$ sudo yum install -y ganglia-gmond

4) Modify the configuration file /etc/httpd/conf.d/ganglia.conf

[[email protected] flume]$ sudo vi /etc/httpd/conf.d/ganglia.conf
Alias /ganglia /usr/share/ganglia
<Location /ganglia>
	       Require all granted
           Allow from all
	# Order deny,allow
	# Deny from all
	# Allow from ::1
   # Allow from .example.com
</Location>

5) Modify the configuration file /etc/ganglia/gmetad.conf

data_source "master" 192.168.148.81

6) Modify the configuration file /etc/ganglia/gmond.conf

 It is amended as follows :
cluster {
    
	name = "master" 
	owner = "unspecified" 
	latlong = "unspecified" 
	url = "unspecified"
}
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's hostname.
Without
# this, the metrics may appear to come from
any
# interface and the DNS names associated with # those IPs will be used to create the RRDs.
# mcast_join = 239.2.11.71 #  Send data to  master
	host = 192.168.148.81
	port = 8649
	ttl = 1
udp_recv_channel {
    
# mcast_join = 239.2.11.71 port = 8649
#  Receive data from any connection  
	bind = 192.168.148.81
	retry_bind = true
# Size of the UDP buffer. If you are handling lots of metrics you really
# should bump it up to e.g. 10MB or even higher. # buffer = 10485760
}

7) Modify the configuration file /etc/selinux/config

 It is amended as follows :
# This file controls the state of SELinux on the system. # SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values: # targeted - Targeted processes are protected, # mls - Multi Level Security protection.
SELINUXTYPE=targeted

Tips :selinux It needs to be restarted to take effect , If you don't want to restart at this time , It can take effect temporarily

 [[email protected] flume]$ sudo setenforce 0

8) start-up ganglia

  [[email protected] flume]$ sudo service httpd start
  [[email protected] flume]$ sudo service gmetad start
  [[email protected] flume]$ sudo service gmond start

9) Open web browsing ganglia page

http://192.168.148.81/ganglia

Tips : If the above operations are completed, there are still insufficient permissions error , Please amend /var/lib/ganglia Directory permissions :

[[email protected] flume]$ sudo chmod -R 777 /var/lib/ganglia

 Insert picture description here


*** If it still doesn't work ***, You can modify the configuration file after modifying /etc/httpd/conf.d/ganglia.conf
 Inside plus Require all granted  I added it in advance 

 Insert picture description here

原网站

版权声明
本文为[Programmer Jiuan]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/175/202206241745463976.html