How To Install And Configure Ganglia On Red Hat Enterprise Linux 5---YUM 安装篇

 

How To Install And Configure Ganglia On Red Hat Enterprise Linux 5

Filed under: Linux, SysAdmin — acidborg @ 13:34

Description: Although Gangliais a scalable distributed monitoring system for high-performance computing systems such as clusters and Grids” (from its web), I’m going to explain how to set up Ganglia as a monitoring system for a group of computers which are neither part of a cluster nor a grid. Ganglia has very low per-node overheads and high concurrency, which makes it perfect to monitor a huge group of servers. I’m going to use one server to collect all data from the nodes. The collector server will run the web front-end for simplicity reasons, although you can install the web front-end on any other server if you need it.

Installation:

  1. Add the EPEL repositories to your systems.    (我下载了这个包并安装epel-release-5-4.noarch.rpm)
  2. Install the data collector (gmetad), the monitoring daemon (gmond) and the web front-end on the collector server: yum install ganglia ganglia-gmetad ganglia-web ganglia-gmond
  3. install gmond on each node you want to monitor: yum install ganglia ganglia-gmond

Configuration on the collector server (for example: collector.mycompany.com):

  1. Edit /etc/gmetad.conf and modify the line which begins with “data_source“. Example:
    data_source "my servers" 60 localhost   (这里我没做改动,默认的“my cluster” ,也没设置60)

    This will collect data from the groups of machines tagged as “my servers” every 60 seconds. It will use localhost as the source of the info.

  2. Edit /etc/gmond.conf and modify the following part:
    cluster {
    name = "my servers"  (只改了这个地方,改成"my cluster”)
    owner = "unspecified"
    latlong = "unspecified"
    url = "unspecified"
    }
    udp_send_channel {
    host = collector.mycompany.com
    port = 8649
    }
    udp_recv_channel {
    port = 8649
    }
    tcp_accept_channel {
    port = 8649
    }
    1. This allows collector.mycompany.com to receive monitoring data from every node on port 8649(UDP).

    2. Restart the collector daemon (gmetad): service gmetad restart
    3. Restart the node daemon (gmond): service gmond restart
    4. Restart the httpd daemon :  service httpd restart

    Configuration on each node you want to monitor (except collector.mycompany.com):

    1. Edit /etc/gmond.conf and modify the following part:
      cluster {
      name = "my servers"   (只改了这个地方,改成"my cluster”)
      owner = "unspecified"
      latlong = "unspecified"
      url = "unspecified"
      }
      udp_send_channel {
      host = collector.mycompany.com
      port = 8649
      }
      /*udp_recv_channel {
      }
      tcp_accept_channel {
      }*/

      This tells gmond to send the info to collector.mycompany.com on port 8649(UDP).

    2. Restart gmond: service gmond restart

    After a few minutes, you will have your monitoring data available through: collector.mycompany.com/ganglia .  (http://localhost/ganglia)



    from : http://acidborg.wordpress.com/2010/10/08/how-to-install-and-configure-ganglia-on-red-hat-enterprise-linux-5/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值