Linux

如何在單播中正確配置 Ganglia?

  • May 15, 2013

我正在使用 Ganglia,順便說一句,這是一個很棒的工具!我正在嘗試製作這個拓撲,其中一些節點正在執行centOS 6.4centOS 5.9

因此,為此我正在為 GMetad 嘗試此配置(其餘為預設配置):

##########################################################################
Head Monitor Cluster (GMetad + Gmond > mute no > deaf no + GWeb ) | centOS 6.4 (desktop)
##########################################################################
data_source "head monitor clusters" 10 192.168.1.100 # 192.168.1.100 == localhost
data_source "monitor cluster" 10 192.168.1.51:8649
gridname "Company"
authority "http://192.168.1.100/ganglia/"



##########################################################################
Monitor Cluster (GMond > mute no > deaf no ) | centOS 6.4 (minimal)
##########################################################################

globals {
 daemonize = yes
 setuid = yes
 user = ganglia
 debug_level = 0
 max_udp_msg_len = 1472
 mute = no
 deaf = no
 allow_extra_data = yes
 host_dmax = 86400 /*secs */
 cleanup_threshold = 300 /*secs */
 gexec = no
 send_metadata_interval = 5 /*secs */
}

cluster {
 name = "Monitor"
 owner = "unspecified"
 latlong = "unspecified"
 url = "unspecified"
}

/* The host section describes attributes of the host, like the location */
host {
 location = "unspecified"
}

udp_send_channel {
 host = 192.168.1.51 # send the data collect to itself
 port = 8649
 ttl = 1
}

udp_send_channel {
 host = 192.168.1.100 #send the data to 
 port = 8649
 ttl = 1
}


/* You can specify as many udp_recv_channels as you like as well. */
udp_recv_channel {
 port = 8649
}

/* You can specify as many tcp_accept_channels as you like to share
  an xml description of the state of the cluster */
tcp_accept_channel {
 port = 8649
}


##########################################################################
Node (Gmond > mute no > deaf yes ) | centOS 5.9 (minimal)
##########################################################################

/* This configuration is as close to 2.5.x default behavior as possible
  The values closely match ./gmond/metric.h definitions in 2.5.x */
globals {
 daemonize = yes
 setuid = yes
 user = ganglia
 debug_level = 0
 max_udp_msg_len = 1472
 mute = no
 deaf = yes
 host_dmax = 86400 /*secs */
 cleanup_threshold = 300 /*secs */
 gexec = no
}

cluster {
 name = "Monitor"
 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 {
 host=192.168.1.51 #send to monitor cluster
 port = 8649
 ttl = 1
}

/* You can specify as many udp_recv_channels as you like as well. */
udp_recv_channel {
#  mcast_join = 239.2.11.71
 port = 8649
#  bind = 239.2.11.71
}

/* You can specify as many tcp_accept_channels as you like to share
  an xml description of the state of the cluster */
tcp_accept_channel {
 port = 8649
}

就是這樣。但是這個配置不起作用,我已經設置了9 個虛擬機來解決這個問題,但到目前為止還沒有。我disabled iptables, ip6tables and selinux。我正在為此工作 3 天,但似乎沒有任何效果。我需要一些幫助,請,請,我請求幫助。在閱讀了這麼多關於 Ganglia 的教程和 O’Reilly 的書之後,我真的不明白為什麼這個配置不起作用。任何的想法 ?還是幫忙?

是的,如果我這樣做:從 192.168.1.100 8649 telnet 192.168.100 8649將顯示收集的全部數據

同樣的東西 to 192.168.1.51, from 192.168.1.100,但是這個沒有顯示在 Ganglia Web 中。它的圖表總是-nan.

任何的想法 ?謝謝!

我能夠解決這個問題。由於某些原因ganglia-gmond,centOS 5.* 是gmond-3.0.7EPEL包一起提供的,但我添加了rpmforge儲存庫,可以找到3.1.7似乎支持單播配置的版本,現在一切正常。

謝謝!

引用自:https://serverfault.com/questions/507182