如何在 Unicast 中正确配置 Ganglia?

如何在 Unicast 中正确配置 Ganglia?

我正在使用 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。我已经为此工作了三天三夜,但似乎没有任何效果。我需要一些帮助,拜托,拜托,我求助。在阅读了这么多关于 Ganglia 的教程和 O'Reilly 书籍后,我真的不明白为什么这种配置不起作用。有什么想法吗?或者帮助?

是的,如果我这样做:来自 192.168.1.100 8649 telnet 192.168.100 8649显示收集到的全部数据

192.168.1.51和一样192.168.1.100,但这个不会显示在 Ganglia Web 中。它的图表总是-nan.

有什么想法吗?谢谢!

答案1

我能够修复该问题。由于某种原因ganglia-gmond,centOS 5.* 附带了gmond-3.0.7软件包EPEL,但我添加了rpmforge存储库并找到了3.1.7似乎支持单播配置的版本,现在一切正常。

谢谢你!

相关内容