首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何正确配置Unicast中的Ganglia?

如何正确配置Unicast中的Ganglia?
EN

Server Fault用户
提问于 2013-05-13 03:23:08
回答 1查看 2.4K关注 0票数 1

我在和Ganglia一起工作,顺便说一句,这是个很棒的工具!我正在尝试使这个拓扑学,一些节点运行centOS 6.4centOS 5.9

为此,我尝试为GMetad进行此配置(其余为默认配置):

代码语言:javascript
复制
##########################################################################
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台虚拟机来完成这个任务,但是到目前为止还没有。I disabled iptables, ip6tables and selinux。我日日夜夜都在做这件事,似乎什么都没有.我想在这方面得到一些帮助,求你了,我求你了。在阅读了那么多关于Ganglia的教程和O‘really的书之后,我真的不明白为什么这个配置不起作用。知道吗?还是帮忙?

是的,如果我知道的话:从192.168.1.1008649 telnet 192.168.100 8649所收集的全部数据将显示出来。

同样的事情发生在192.168.1.51上,来自192.168.1.100,但是这个不显示在Ganglia中。它的图表总是-nan.

知道吗?谢谢!

EN

回答 1

Server Fault用户

回答已采纳

发布于 2013-05-15 02:05:39

我解决了这个问题。由于某种原因,ganglia-gmond 5.*是EPEL包附带的gmond-3.0.7,但是我添加了rpmforge存储库,可以找到支持单播配置的3.1.7版本,现在一切正常。

谢谢!

票数 2
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/507182

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档