顺便说一下,我正在和Ganglia合作,这是一个很棒的工具! 我试图做这个拓扑 ,一些节点运行centOS 6.4 , centOS 5.9 。
所以为此,我正在尝试GMetad的configuration(其余部分是默认的):
########################################################################## 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 }
就是这样。 但是这个configuration不起作用,我已经设置了9个虚拟机来完成这个工作,但是目前还没有。 我disabled iptables, ip6tables and selinux 。 我正在为此工作三天一夜,似乎没有任何工作..我想在这方面的一些帮助,请,请求帮助。 我真的不明白为什么这个configuration不工作,在阅读了这么多的教程和O'Reilly关于Ganglia的书之后。 任何想法 ? 还是帮忙?
是的,如果我这样做:从192.168.1.100 8649 telnet 192.168.100 8649 , 显示收集的全部数据 。
192.168.1.51与192.168.1.100 ,但是这个不在Ganglia Web中显示。 它的图表总是 – -nan.
任何想法 ? 谢谢!
我能够解决这个问题。 出于某种原因,centos 5. *附带的ganglia-gmond rpmforge是EPEL包中的rpmforge gmond-3.0.7 ,但是我添加了rpmforge版本库,可以find似乎支持单播configuration的3.1.7版本,现在一切都是工作正常。
谢谢!