ubuntu14.04 Department Ganglia

Technology Architecture

The Ganglia system is mainly divided into the following three modules:

  • Gmond: Gmond runs on each monitored node and is mainly responsible for collecting and sending monitoring data
  • Gmetad: Gmetad runs on one host per cluster and aggregates the data collected by each node and stores it in the RDD storage engine
  • Gweb: Gweb is used to graphically display the data collected by gmetad. It runs on the apache server and is generally deployed on the same machine as gmetad in the cluster.

Machine configuration:

  • Control node host: 10.20.4.56
  • Monitored nodes: 10.20.4.57 (receive and save complete cluster data), 10.20.4.58 (receive and save complete cluster data), 10.20.4.59

installation steps:

1: Installation of monitored nodes

1.sudo apt-get update

2.sudo apt-get install ganglia-monitor

3. Configuration

Configure /etc/ganglia/gmond.conf file

     vim /etc/ganglia/gmond.conf

   

     The modification of the Global area is as shown below , only need to modify the user and send_metadata_interval

      

    The Cluster area is modified as shown in the figure below , and the name is modified. This is the cluster name, which is used for the configuration of gmetad later.

      

    The Udp_send_channel area is modified as follows , comment out mcasy_jion (for multicast), we use unicast here, replace 10.20.4.57, 10.20.4.58 with the name of your machine

   

   Udp_recv_channel is modified as follows, just comment out mcast_join and bind

   

   start gmond

   sudo /etc/init.d/ganglia-monitor restart

Note:

You can run telnet localhost 8649    before starting

   If the following figure appears, the xml content is installed correctly, and then install it down

   You can also change the debug in gmond.conf from 0 to 100, see more logs, and then troubleshoot.

    

Two: control node installation

1.sudo apt-get update

2.sudo apt-get install rrdtool apache2 php5 ganglia-monitor gmetad ganglia-webfrontend

During the process, the apache2 restart dialog box appears, select yes

3. Copy the Ganglia webfrontend Apache configuration:

sudo cp /etc/ganglia-webfrontend/apache.conf /etc/apache2/sites-enabled/ganglia.conf

4. Configure the gmetad configuration file

vim /etc/ganglia/gmetad.conf

   Find the data_source, the first parameter hadoop-cluster and the name of the cluster in gmond.conf must be the same, the second parameter is the same as the host in upd_send_channel, of course, there can be many, I have configured two here, the second is as redundant extra backup.

5. sudo ln -s /usr/share/ganglia-webfrontend/ /var/www/ganglia

6. Restart the service
sudo /etc/init.d/gmetad restart
sudo /etc/init.d/apache2 restart

7. If it appears

Sorry, you do not have access to this resource. “); } try { dwoo=newDwoo(conf[‘dwoo_compiled_dir’], conf['dwoo_cache_dir']); } catch (Exceptione) { print “

It's because of missing mod-php and php7.0-xml modules:

sudo apt-get install libapache2-mod-php7.0 php7.0-xml ; sudo /etc/init.d/apache2 restart

8. Log in to http://10.20.4.56/ganglia to check the monitoring effect

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325904971&siteId=291194637