Baota Panel installs Ganglia for centralized monitoring of server information

Baota Panel installs Ganglia for centralized monitoring of server information

The installation of Ganglia is mainly divided into two parts: one part is the main control end, installing ganglia-web and gmetad, and the other part is the controlled end, installing gmond.

1. On the master side, install ganglia-web and gmetad

The main control end can be concentrated in one VPS, which is used to centrally manage and display the servers that need to be monitored.

Under SSH, root user:

Prerequisite: Install related dependencies

 yum -y install apr-devel apr-util check-devel cairo-devel pango-devel libxml2-devel rpm-build glib2-devel dbus-devel freetype-devel fontconfig-devel gcc gcc-c++ expat-devel python-devel libXrender-devel

yum install -y libart_lgpl-devel pcre-devel libtool

yum install -y rrdtool rrdtool-devel

1. Install ganglia-web and gmetad

 yum install -y epel-release

yum install -y ganglia-web.x86_64
yum install -y ganglia-gmetad.x86_64

2. Start related services

 systemctl start gmetad.service

3. Changes to gmetad configuration files

 vi /etc/ganglia/gmetad.conf

data_source “bigdata-kylin” localhost
gridname "kylin"
setuid_username ganglia
case_sensitive_hostnames 0

data_source "bigdata-kylin" localhost Set the cluster name here. The gmond side must be consistent, especially in multicast mode, and identify it accordingly. The last localhost is the node IP of gmond transmission. Because the gmond side is set to transmit all data to the gmond node at gmetad, it can be set to localhost
gridname "kylin" is the name displayed on the web cluster. It has no special purpose. It is just to remove the unspecial name displayed at the top of the web.

4. Install the pagoda panel and set the ganglia directory

Install Baota, create a new site, and change the root directory of the configuration file

 root /usr/share/ganglia

5. Set file permissions

 chmod 777 -R /var/lib/ganglia-web/dwoo/compiled
chmod 777 -R /var/lib/ganglia-web/dwoo/cache

6. Open port 5649

7. Start the machine

 systemctl start gmetad.service
systemctl enable gmetad.service

2. Controlled end, gmond end installation and settings

1. Install gmond

 yum install -y epel-release

yum install -y ganglia-gmond

2. Configuration modification

 vi /etc/ganglia/gmond.conf

Major changes

 cluster {
  name = "bigdata-kylin" ##Needs to be consistent with the datasource name defined in gmetad owner = "unspecified"
  latlong = "unspecified"
  url = "unspecified" 
}
/* The host section describes attributes of the host, like the location */
host {
  location = "unspecified"
}
/* Feel free to specify as many udp_send_channels as you like. Gmond
   used to only support having a single channel */
udp_send_channel {
  #mcast_join = 239.27.1.1 ## This is the multicast setting. Remove the unicast mode host = 10.239.1.35 ## The IP (ganglia-web) that transmits data to gmond, set port = 8649 ## The port of the receiving gmond node ttl = 1
}
/* You can specify as many udp_recv_channels as you like as well. */
udp_recv_channel {
  port = 8649 ##gmond's own node port bind = 0.0.0.0 ##gmond listening address, you can also remove it retry_bind = true
}

3. Start the machine

 systemctl start gmond.service
systemctl enable gmond.service

4. Restart the service

 systemctl restart gmetad.service 
systemctl restart gmond.service

Partial reference: https://www.cnblogs.com/marility/p/9444357.html

<<:  Linux practical one-click scripts, including BBR, rclone/fclone/6pan-cli/aria2cli/youtube-dl, aria2, network disk mounting, etc.

>>:  iCarbonX: 1888 yuan/month/8 cores/8GB memory/100GB SSD space/unlimited traffic/1Gbps bandwidth, exclusive/independent IP/Hyper-v/Shanghai Unicom/9929

Recommend

CrownCloud: $15/year/1 IPv4/256MB memory/4GB space/1TB traffic/KVM

As introduced before, the same model now has doub...

$6.99/month/512M memory/20G space/2000G traffic/Xen VPS —— QHoster

QHoster is a Bulgarian hosting company, founded i...

Nogics: $21.32/year/1GB memory/20GB SSD space/2TB traffic/XEN/France

Nogics, an Indian hosting provider, now offers a ...

24Shells: $130/month/32GB memory/1TB hard drive/100TB traffic/5 IP/New York

24Shells, a long-established American hosting com...

CycloneServers: $4.75/month/2GB memory/100GB space/2TB bandwidth/KVM/Los Angeles

CyclonesServers, which has been introduced severa...

LetBox: $5.5/month/2GB memory/20GB NVMe+512GB space/3TB traffic/KVM/Los Angeles

LetBox, an American hosting company, has been int...

Today Google PR has been updated again

Today, I was surprised to find that the PR of thi...

Comcure: Provide 2G website backup space

Comcure is a free website backup service from UK2...