Ganglia is installed on the pagoda panel for centralized monitoring of server information

888u

Last update at :2024-06-12,Edit by888u

Pagoda Panel InstallationGanglia, used for centralized monitoring of server information

Official website address: http:// www.bt.cn/

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

1. On the main control terminal, install ganglia-web and gmetad

The main control terminal can be concentrated in a VPS for centralized management and display of servers that need to be monitored.

Under SSH, root user:

Prerequisite, install relevant 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. gmetad configuration file changes

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 end must be consistent, especially in multicast mode, and it is identified accordingly. The last localhost is the node IP transmitted by gmond, because setting the gmond end will all Data is transmitted to the gmond node at gmetad, so it can be set to localhost gridname "kylin" is the name displayed in the cluster on the web side. It does not have much effect. It is just to remove the unspecial displayed at the top of the web

4. InstallationPagoda panel, set ganglia directory

Install Pagoda, create a new site, and change the root directory with configuration files

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 up

systemctl start gmetad.service systemctl enable gmetad.service

2. Installation and settings of controlled terminal and gmond terminal

1. Install gmond

yum install -y epel-release yum install -y ganglia-gmond

2. Configuration modification

vi /etc/ganglia/gmond.conf

Main 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, the unicast mode needs to be removed. host = 10.239.1.35 ##IP for transmitting data to gmond (ganglia-web), set port = 8649 ## The port to receive the gmond node ttl = 1 } /* You can specify as many udp_recv_channels as you like as well. */ udp_recv_channel { port = 8649 ##The port of gmond’s own node bind = 0.0.0.0 ##gmond listening address, you can also remove it retry_bind = true }

3. Start up

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

Recommended site searches: site group server, website registration and cancellation, server Hong Kong, foreign trade host, shopex virtual host, website registration domain name query, mobile server hosting, agency registration, Wanwang domain name space, domain name and space,

Ganglia is installed on the pagoda panel for centralized monitoring of server information

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码