Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

CentOS7.2 install Ganglia3.7.2

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

For more details on how to use Ganglia, please read the authoritative guide to Ganglia.

Http://www.51niux.com/?id=83

Http://www.51niux.com/?id=84

Http://www.51niux.com/?id=85

1. Introduction to Ganglia

Ganglia introduction:

Ganglia is a scalable distributed monitoring system designed for HPC (High performance Computing) cluster. It can monitor and display all kinds of state information of nodes in the cluster. The gmond daemon running on each node collects data such as CPU, memory, disk utilization, Icano load, network traffic and so on. It is then summarized under the gmetad daemon, uses rrdtool to store the data, and then presents the historical data curvilinear through the PHP page.

Ganglia comes with a lot of monitoring items, which are more detailed and can be seen in the screenshot after the construction is successful. There are few PDF books and materials related to ganglia.

Ganglia is a cluster monitoring tool created by UC Berkeley and open source. Ganglia, which means nerve center in Chinese, now supports multiple operating systems (including linux, unix, windows) and can support network monitoring of 2000 nodes (of course, this is not the upper limit, but an example of the use of a large cluster).

Basic structure

The underlying layer of Ganglia uses RRDTool to obtain data. Ganglia is mainly divided into two process components:

Gmond (ganglia monitor deamon)

Gmetad (ganglia metadata deamon)

Among them, gmond runs on each node of the cluster and collects the data generated by RRDTool; gmetad runs on the monitoring server and collects data for each gmond. Ganglia also provides a web front end implemented by PHP, which generally uses Apache2 as its running environment, and various intuitive cluster data charts can be seen through Web Front.

The hierarchical structure of Ganglia is very good, from small to large can be divided into node-> cluster-> grid, these three levels.

A node is a node that needs to be monitored, usually a host, represented by IP. A gmond process runs on each node to collect data and submit it to the gmetad.

A cluster consists of multiple node, which is a cluster, and we can define a name for the cluster. A cluster can select a node to run the gmetad process, summarize / pull the data submitted by gmond, and deploy web front to display the data collected by gmetad in a chart.

A grid consists of multiple cluster, which is a higher-level concept, and we can define a name for the grid. You can define a top-level gmetad process in grid, summarize / pull data submitted by multiple gmond and sub-gmetad, deploy web front, and display the data collected by top-level gmetad in a chart.

Obviously, this method is very flexible and can realize multi-structure data monitoring. From the figure below, we can clearly see this hierarchical structure and different deployment methods.

Ganglia operation mode (unicast and multicast):

The data collection work of Ganglia can work in unicast (unicast) or multicast (multicast) mode, which defaults to multicast mode.

Unicast: send your collected monitoring data to a specific machine or machines, which can span network segments.

Multicast: send the monitoring data collected by yourself to all the machines in the same network segment, and collect the monitoring data sent by all the machines in the same network segment. Because it is sent in the form of a broadcast packet, it needs to be within the same network segment. However, within the same network segment, different transmission channels can be defined.

The three major components of ganglia:

Gmond:

Gmond is similar to the agent in the traditional monitoring system, which needs to be installed on each host and is responsible for interacting with the operating system to obtain the metric data that needs attention.

Gmond adopts modular design inside, and uses plug-ins based on C language and customized according to the operating system for monitoring. Gmond provides most standard plug-ins for metrics, and more plug-ins written in languages such as C, C++ or Python can be added to support new metrics. In addition, the built-in gmetric tool can be used to report custom metric data compiled in any language.

Gmond polls according to the scheduling scheme defined by its own local profile. The simple listening / advertisement protocol is used when listening to data, which is shared among hosts in the cluster through XDR. These advertisements use multicast by default, and clusters are made up of hosts that share the same multicast address. Of course, gmond can also use unicast to aggregate data to the same central node.

Because each gmond host multicasts metrics data to other hosts in the cluster, each gmond host also records the metric data of other hosts in the cluster. The remote poller requests all the data in the cluster XML format from any node in the cluster through the default port 8649.

If there are too many server hosts, as long as you poll any node in the cluster, you can get the performance metrics data of all other hosts in the cluster, so we can divide many hosts into different groups. In this way, the workload of data collection will be greatly reduced.

Gmetad:

The main function is to integrate all the information.

Gmetad is a simple poller that polls each cluster in the network and writes all the metric data returned on each host to the polling database corresponding to each cluster. The poller's "polling" for the cluster only needs to open a socket for reading and connect to port 8649 of the target gmond node, which is very easy to achieve remotely.

Gmetad also has some other features, such as the ability to poll data from other gmetad, gmetad listens for remote gmetad connections through tcp port 8651, and provides grid status in XML format to authorized hosts. Thus a joint hierarchical structure is formed. Gmetad has interactive query function, and the external monitoring system can poll with simple text protocol through TCP 8652 port. Gmetad can also forward metrics data to external systems such as Graphite to send data by configuring gmetad.

Gmetad writes metrics data directly to the RRD file on the file system by default, and rrdcached acts as a cache between the gmetad and RRD files in large devices with Imax O limits.

Gweb:

Ganglia visualization tools. Displays the host metrics collected by ganglia.

Gweb allows you to change the time period by clicking-and-dragging in the icon, including tools that can easily provide data from different text formats (CSV,JSON, etc.), displaying a complete and used URL interface, so that users can embed interested charts into other programs through the predicted URL.

Gweb is a PHP program, and because you need to interact with the RRD database created by the poller, gweb is usually installed on the same physical hardware as gmetad.

Ganglia official website: http://ganglia.info download link: http://ganglia.info/?page_id=66

2. Environmental preparation

Set or stop the firewall: [root@localhost ~] # systemctl stop firewalld.service [root@localhost ~] # systemctl disable firewalld.service close selinux: temporarily close: [root@localhost ~] # setenforce 0 permanently close (modify configuration file): [root@localhost ~] # vi / etc/selinux/config change to SELINUX=disabled uninstall system default installed Apache package: [root@localhost ~] # rpm-qa httpd* [root@localhost ~] # rpm-e-nodeps package name has multiple httpd* Delete for name in `rpm-qa httpd* `with script Do rpm-e-nodeps $name Done installation dependency package: [root@localhost ~] # rpm-Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm[root@localhost ~] # yum install wget lrzsz vim lynx lsof netstat-tools unzip-y time zone setting: [root@localhost ~] timedatectl [root@localhost ~] timedatectl list-timezones # this command lists all time zones [root@localhost ~] timedatectl set-timezone Asia/Shanghai # this command sets the time zone to Shanghai time synchronization: [root@localhost ~] # ntpdate time.nist.gov # if you don't have yum to install this command [root@localhost ~] # / usr/sbin/ntpdate time.nist.gov [root@localhost ~] # crontab-eSync * / usr/sbin/ntpdate time.nist.gov > / dev/null 2 > & 1

3. Install Ganglia in RPM mode

3.1 installation of server (192.168.146.128):

Yum installation related dependency package: [root@localhost system] # 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 [root@localhost system] # yum install-y libart_lgpl-devel pcre-devel libtool [root@localhost system] # yum install-y rrdtool rrdtool-devel [root@localhost system] # systemctl restart gmond [root@localhost system] # systemctl Restart gmetad [root@localhost system] # systemctl restart httpd [root@localhost system] # netstat-lntup installation gmetad: [root @ localhost system] # cd [root@localhost ~] # yum install libconfuse libconfuse-devel-y [root@localhost ~] # mkdir / tools & & cd / tools/ [root@localhost ~] # wget https://sourceforge.net/projects/ganglia/files/ganglia%20monitoring%20core/3.7.2/ganglia-3.7.2.tar.gz[root@localhost ~] # tar zxf ganglia -3.7.2.tar.gz [root@localhost ganglia-3.7.2] # ls-l ganglia.spec # because of this ganglia.spec So it supports rpm installation-rw-r--r--. 1 www-data www-data 23494 July 2 2015 ganglia.spec [root@localhost ganglia-3.7.2] # rpmbuild-tb / tools/ganglia-3.7.2.tar.gz #-tb represents the total amount of built binary file [root@localhost ganglia-3.7.2] # cd / root/rpmbuild/RPMS/x86_64/ [root @ localhost x86q64] # ll from the tar package. 1 root root 486864 June 3 11:29 ganglia-debuginfo-3.7.2-1.x86mm 64.rpmMurr Rwmuri Rafael. 1 root root 49596 June 3 11:29 ganglia-devel-3.7.2-1.x86mm 64.rpmMurrwmurr Rafael. 1 root root 59088 June 3 11:29 ganglia-gmetad-3.7.2-1.x86mm 64.rpmMurrwmurr Rafael. 1 root root 134956 June 3 11:29 ganglia-gmond-3.7.2-1.x86mm 64.rpmMurr Rwmuri Rafael. 1 root root 128628 June 3 11:29 ganglia-gmond-modules-python-3.7.2-1.x86mm 64.rpm RWM, RW, Ruki, Rafael. 1 root root 45344 June 3 11:29 libganglia-3.7.2-1.x86_64.rpm installed both gmetad and gmond. [root@localhost x86y64] # rpm-ivh / root/rpmbuild/RPMS/x86_64/*/etc/ganglia/ # main configuration file directory / var/lib/ganglia/rrds # is the rrds diagram information storage directory [root@localhost x86y64] # rpm-ql ganglia-gmetad-3.7.2-1 # such as: you can also see through this command Gmetad's rpm package related directory / etc/ganglia/gmetad.conf/etc/init.d/gmetad/etc/sysconfig/gmetad/usr/sbin/gmetad/usr/share/man/man1/gmetad.1.gz/usr/share/man/man1/gmetad.py.1.gz/var/lib/ganglia/var/lib/ganglia/rrds installation gweb: [root@localhost x86y64] # yum install httpd httpd-devel php-y [root@localhost x86y64] # yum-y install rsync [root@ Localhost x86 / 64] # cd / tools/ [root@localhost tools] # wget https://sourceforge.net/projects/ganglia/files/ganglia-web/3.7.2/ganglia-web-3.7.2.tar.gz[root@localhost tools] # tar zxvf / tools/ganglia-web-3.7.2.tar.gz-C / var/www/html/ [root@localhost tools] # cd / var/www/html/ [root@localhost html] # mv ganglia-web-3.7. 2 ganglia [root@localhost html] # cd / var/www/html/ganglia/ [root@localhost ganglia] # useradd-M-s / sbin/nologin www-data [root@localhost ganglia] # make install # perform this step The relevant directory [root@localhost ganglia] # systemctl restart gmond [root@localhost ganglia] # systemctl restart gmetad [root@localhost ganglia] # systemctl restart httpdgmond default port 8649 is created. Gmetad default ports 8651, 9652. Gmond default multicast method. [root@localhost system] # netstat-lntupActive Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0 lntupActive Internet connections 8649 0.0.0.0 LISTEN 14244/gmond tcp 0 0 0.0.0.0 .0: * LISTEN 14257/gmetad tcp 0 0 0.0 0. 0 LISTEN 1430/sshd tcp 8652 0. 0 0. 0. 0. 0 LISTEN 1430/sshd tcp. 0 0127.0.0.1 LISTEN 1734/master tcp6 25 0.0.0.0 LISTEN 1734/master tcp6 0 0: 80:: * LISTEN 14274/httpd tcp6 0 0: 22:: * LISTEN 1430/sshd tcp6 0 0:: 1:25: * LISTEN 1734/master udp 0 0239.2.11.71 14244/gmond udp 8649 0.0.0.0 14244/gmond udp 0 0 .0.0.0: 49704 0.0.0.0 1240/dhclient udp * 1240/dhclient udp6 0:: 28458:: * 1240/dhclient

3.2 gmond client (192.168.146.134) installation:

[root@localhost system] # 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 [root@localhost system] # yum install libconfuse libconfuse-devel-y requires the following four rpm packets: send to other clients Rpm-ivh * just ganglia-devel-3.7.2-1.x86_64.rpmganglia-gmond-3.7.2-1.x86_64.rpmganglia-gmond-modules-python-3.7.2-1.x86_64.rpmlibganglia-3.7.2-1.x86_64.rpm# to start the gmond service, because the default configuration is a multicast group, and the multicast address and port are the same. [root@localhost system] # systemctl restart gmond Note: the server should change a configuration file to indicate which gmond to get the data.

Web access:

Http://192.168.146.128/ganglia/

Solution:

[root@localhost system] # ln-s / var/lib/ganglia / var/lib/ganglia-web [root@localhost system] # mkdir-p / var/lib/ganglia-web/dwoo/ {compiled,cache}-p [root@localhost system] # chown-R apache:apache / var/lib/ganglia Note: if ganglib and ganglia-web already exist, grant permissions to ganglia-web directly.

Note 1:

There was an error collecting ganglia data (127.0.0.1 message 8652): fsockopen error: Connection refused View message Log: localhost / usr/sbin/gmetad [14747]: RRD_create: creating'/ var/lib/ganglia/rrds/__SummaryInfo__/diskstat_vda_writes.rrd': Permission deniedlocalhost / usr/sbin/gmetad [14747]: Unable to write meta data for metric diskstat_vda_writes to RRD solution: # / etc/init.d/gmetad status # View status gmetad is dead gmetad is dead But subsys is locked # chown nobody:nobody / var/lib/ganglia/rrds-R # / etc/init.d/gmetad restart

Note 2:

Note: Centos7 series Error will be reported in this way of rpm installation: # rpm-ivh * .rpm error: dependency detection failed: libpcre.so.0 () (64bit) by ganglia-gmond-3.7.2-1.x86_64 requires libpcre.so.0 () (64bit) by ganglia-gmond-modules-python-3.7.2-1.x86_64 requires libpython2.6.so.1.0 () (64bit) by ganglia-gmond-modules-python-3. 7.2-1.x86_64 requires libpcre.so.0 () (64bit) to be needed by libganglia-3.7.2-1.x86_64: as you can see from the above figure To find the corresponding library file, such as libpython2.6.so.1.0, this is only available in the Centos6 version. Centos7 defaults to libpython2.7. And the ganglia we downloaded is also the latest version, so if the system has a version of Centos7, you can't install it in this easy way to use the rpm package. It is about to be changed to the form of compilation installation, and we generally take the form of compilation installation online, because the compilation installation can specify the corresponding directories and parameters.

Remarks 3:

When the server is started and the node is loaded, you will find that there is only the host diagram, but there is no curve value in the host diagram: the bottom of the chart hints: No matching metrics detected first: whether the installation steps are correct and whether the relevant directories are missing. Second: check the message log, whether the directory permissions are wrong, especially whether / var/lib/ganglia/rrds/ has permissions to alarm. Third: whether the monitored node has a firewall or other operations. Take 192.168.1.103 as an example (Centos7's firewalld is not turned off): the following is the effect of turning off the firewall service.

4. Install Ganglia in compiler mode (recommended)

4.1 Operation on the server side (192.168.146.128):

Install gmetad [root @ localhost ~] # 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 [root@localhost ~] # yum install-y libart_lgpl-devel pcre-devel libtool [root@localhost ~] # yum install-y rrdtool rrdtool-devel [root@localhost ~] # mkdir / tools [root@localhost ~] # cd / tools/ [root @ localhost ~] # wget http://www.mirrorservice.org/sites/download.savannah.gnu.org/releases/confuse/confuse-2.7.tar.gz[root@localhost ~] # tar zxvf confuse-2.7.tar.gz [root@localhost ~] # cd confuse-2.7 [root@localhost ~] #. / configure-- prefix=/usr/local/ganglia-tools/confuse CFLAGS=-fPIC-- disable-nls-- libdir=/usr/local/ganglia-tools/confuse/lib64 [root @ localhost ~] # make & & make install [root@localhost ~] # cd / tools/ [root@localhost] # wget https://sourceforge.net/projects/ganglia/files/ganglia%20monitoring%20core/3.7.2/ganglia-3.7.2.tar.gz[root@localhost ~] # tar zxf ganglia-3.7.2.tar.gz [root@localhost ~] # cd ganglia-3.7.2 [root@localhost ~] #. / configure-- prefix=/usr/local/ Ganglia--enable-gexec-- enable-status-- with-gmetad-- with-libconfuse=/usr/local/ganglia-tools/confuse # enable-gexec is the gmond node [root@localhost ~] # make & & make install [root@localhost ~] # cp gmetad/gmetad.init / etc/init.d/gmetad [root@localhost ~] # ln-s / usr/local/ganglia/sbin/gmetad / usr/sbin/gmetad installation gweb [root @ localhost x86x64] # yum install httpd httpd-devel php-y [root@localhost x86 / 64] # yum-y install rsync [root@localhost x86 / 64] # cd / tools/ [root@localhost tools] # wget https://sourceforge.net/projects/ganglia/files/ganglia-web/3.7.2/ganglia-web-3.7.2.tar.gz[root@localhost tools] # tar zxvf / tools/ganglia-web-3.7.2.tar.gz-C / var/www/html/ [root@localhost tools] # cd / var/www/html / [root@localhost html] # mv ganglia-web-3.7.2 ganglia [root@localhost html] # cd / var/www/html/ganglia/ [root@localhost ganglia] # useradd-M-s / sbin/nologin www-data [root@localhost ganglia] # make install # perform this step Will create a related directory [root@localhost ganglia] # chown apache:apache-R / var/lib/ganglia-web/ modify configuration modify startup script [root@localhost ganglia] # vi / etc/init.d/gmetadGMETAD=/usr/sbin/gmetad # this sentence can change the command of gmetad Of course, you can also make a soft connection start () {[- f / usr/local/ganglia/etc/gmetad.conf] | | exit 6 # to change the configuration file to its current location. Otherwise, the startup will not respond to create the rrds directory [root@localhost ganglia] # mkdir / var/lib/ganglia/rrds-p [root@localhost ganglia] # chown-R nobody:nobody / var/lib/ganglia/rrds to modify the gmetad configuration file because we will first let it be a simple gweb node and gmetad node without starting the gmond service, assuming that it is no longer in any multicast cluster. [root@localhost ganglia] # vi / usr/local/ganglia/etc/gmetad.confdata_source "my cluster" 192.168.146.134 usr/local/ganglia/etc/gmetad.confdata_source 8649 # this is what we will often modify in the future. "" it indicates which IP port to go after the group name to collect gmond data. Start the service [root@localhost ganglia] # mkdir-p / usr/local/ganglia/var/run [root@localhost ganglia] # / etc/init.d/gmetad restart [root@localhost ganglia] # systemctl restart httpd [root@localhost tools] # netstat-luntpActive Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/ Program name tcp 0 0 0.0.0 0 LISTEN 16547/gmetad tcp 8651 0.0.0 0 LISTEN 16547/gmetad tcp 0 0 0.0.0 0 0.0.0.0LISTEN 16344/httpd * LISTEN 1433/sshd tcp 0 0127.0.0.1 LISTEN 1433/sshd tcp 25 0.0.0.0 LISTEN 16344/httpd 0: 80:: Tcp6 0 0: 22: * LISTEN 1433/sshd tcp6 0 0:: 1:25: * LISTEN 1741/master udp 00 0.0.0.0 LISTEN 1741/master udp 47154 0.0.0. 01242/dhclient * 1242/dhclient udp 0 0 0.0.0.0 1242/dhclient 68 0.0.0.0 1242/dhclient 0: 2514::

4.2 Operation of the client (192.168.146.134):

[root@localhost ~] # 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 [root@localhost ~] # yum install-y libart_lgpl-devel pcre-devel libtool [root@localhost] # mkdir / tools [root@localhost ~] # cd / tools/ [root@localhost tools] # wget http://www.mirrorservice.org/sites/download Savannah.gnu.org/releases/confuse/confuse-2.7.tar.gz [root@localhost tools] # tar zxvf confuse-2.7.tar.gz [root@localhost tools] # cd confuse-2.7 [root@localhost confuse-2.7] #. / configure-- prefix=/usr/local/ganglia-tools/confuse CFLAGS=-fPIC-- disable-nls-- libdir=/usr/local/ganglia-tools/confuse/lib64 [root@localhost confuse-2.7] # make & & make install [ Root@localhost confuse-2.7] # cd / tools/ [root@localhost tools] # wget https://sourceforge.net/projects/ganglia/files/ganglia%20monitoring%20core/3.7.2/ganglia-3.7.2.tar.gz[root@localhost tools] # tar zxvf ganglia-3.7.2.tar.gz [root@localhost tools] # cd ganglia-3.7.2 [root@localhost ganglia-3.7.2] #. / configure-- prefix=/usr/local/ganglia -- enable-gexec-- enable-status-- with-libconfuse=/usr/local/ganglia-tools/confuse # enable-gexec is the gmond node [root@localhost ganglia-3.7.2] # make & & make install [root@localhost ganglia-3.7.2] # / usr/local/ganglia/sbin/gmond-t > / usr/local/ganglia/etc/gmond.conf # generate gmond configuration file [root@localhost ganglia-3.7.2] # cp / tools/ganglia- 3.7.2/gmond/gmond.init / etc/init.d/gmond [root@localhost ganglia-3.7.2] # mkdir-p / usr/local/ganglia/var/run [root@localhost ganglia-3.7.2] # / etc/init.d/gmond restart [root@localhost ganglia-3.7.2] # netstat-luntpActive Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 00 127.0.0.1 LISTEN 15476/gmond tcp 9000 0.0.0.0 LISTEN 1056/php-fpm: LISTEN 15476/gmond tcp 00 0.0.0.015 8649 0.0.0.0 LISTEN 15476/gmond tcp 00 0.0.0.022 0.0.0 .0: * LISTEN 1061/sshd tcp 0 0 0.0.0.0 LISTEN 1683/master 22 0.0.0.0 LISTEN 1683/master * LISTEN 1061/sshd tcp 0 0 127.0.1 LISTEN 1683/master Tcp6 00:: 50088: * LISTEN 1375/httpd tcp6 00: 3306: * LISTEN 1410/mysqld tcp6 00: 2222: * LISTEN 1061/sshd tcp6 00: 22: * LISTEN 1061/sshd tcp6 00:: 1:25:: * LISTEN 1683/master tcp6 00: 50080 : * LISTEN 1375/httpd udp 0 0 0.0.0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 15476/gmond udp 0 0 0.0.0.0 855/dhclient 68 0.0.0.0 855/dhclient * 855/dhclient udp6 0 0: 6727:: *

Web access

Http://192.168.146.128/ganglia/

Note:

The test result is OK, so here's the screenshot. In online environments, we usually create a monitor to store relevant monitoring programs, so you can see that my compilation process specifies the installation location, but generally does not put it under / usr/local, but will point to our monitoring users or monitoring directory. In addition, the client has a successful compilation and installation, and the generated directory can be sent directly to other clients, which can also be used without the need for each machine to carry out a compilation process. Of course, the yum installation package group is still required.

5. Detailed explanation of Ganglia directory and configuration file

Directory structure of 5.1 gmond nodes

[root@localhost ganglia] # tree-L 3. ├── bin │ ├── ganglia-config │ ├── gmetric │ └── gstat ├── │ ├── conf.d │ │ └── modpython.conf │ └── gmetad.conf ├── include │ ├── ganglia_gexec.h │ ganglia.h gm_file.h gm_metric.h ├── gm_mmn.h │ ├── gm_msg.h │ ├── gm_protocol.h │ └── gm_value.h ├── lib64 │ ├── ganglia │ │ ├── modcpu.so │ │ ├── moddisk.so │ │ ├── modgstatus.so modload.so modmem.so ├── modmulticpu.so │ │ ├── modnet.so │ │ ├── modproc.so │ │ ├── modpython.so │ │ └── modsys.so │ ├── │ ├── libganglia.la │ ├── libganglia.so-> libganglia.so.0.0.0 libganglia.so.0-> libganglia.so.0.0.0 Libganglia.so.0.0.0 ├── sbin │ ├── gmetad │ └── gmond ├── share │ └── man │ ├── man1 │ └── man5 └── var └── run └── gmetad.pid13 directories 31 files

5.2 detailed explanation of gmond configuration file

[root@localhost ganglia] # / usr/local/ganglia/sbin/gmond-t # View the default configuration file for gmond consists of several section enclosed by {}. Section names and attributes are not case sensitive. Globals {# section:globals. Globals appears only once in the configuration. Daemonize = yes # when the value is true (yes | true | on), gmond will run separately in the background. Set to false and gmond is run by the daemon manager. Setuid = yes # this is when gmond takes the UID of a specific user specified by the user attribute as a valid UID; value of false, gmond will not change its valid user. User = nobody # username debug_level = 0 # value is 0MagneGmond running normally, > 0MagneGmond foreground running and output debugging information. The higher the debug_level value, the more detailed the output. Max_udp_msg_len = 1472 # the maximum length that a gmond packet can contain. This value is generally not changed. Mute = no # is set to no,gmond to send data. Set to yes, which is a single receiver, but will still correspond to an external poller such as gmetad. Deaf = no # gmond will not be able to receive data when the value is true. Setting no means that you can receive data. Allow_extra_data = yes # when the value is false, gmond will not send the EXTRA_ELEMENT and EXTRA_DATA parts of the XML. This is a transmission. Host_dmax = 86400 # set to 0 Magi Gmond will not remove hosts from the queue that are not being reported. This means that if no data from a host is received within 86400 seconds, the gmond will be deleted. Host_tmax = 20 # when gmond waits for 20 seconds * 4 and does not receive any messages from a host, gmond assumes that the host has crashed. Cleanup_threshold = 300 # gmond the minimum time interval for purging expired data is 300 seconds. Gexec = no # when the value is true, gmond will allow the host to run the gexec task. This approach requires allowing gexecd and installing the appropriate CAPTCHA. Send_metadata_interval = 0 # this is the time interval that sets gmond to send meta packets twice. The unit is seconds. The default setting is 0, which means that gmond sends meta packets only when it initiates and collects other remotely allowed gmond node requests. However, the retransmission interval must be set in a unicast environment. # override_hostname = "mywebserver.domain.com"# this is the name to be displayed in the gweb interface, which can be IP or string, and the default is comment status. By default, gmond uses reverse DNS resolution when displaying hostnames.}

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 261

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report