On Sat, 4 Nov 2006, [GB2312] ±ß½­ wrote:

(NOTE: I have re-added the ganglia-general mailing list to the CC list.  
Please be sure to keep this so that the other mailing list members can learn 
from or help solve your problems.)

> My head node' IP address is 192.168.0.220
> and the gmond.conf is
> udp_send_channel {
> //    mcast_join = 239.2.11.71
>    host = 192.168.0.220
>    port = 8649
> }
> 
> /* 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
> }
> gmetad.conf is
> data_source "grid" localhost
> -------------------------------------
> and another node's IP address is 192.168.0.221
> and it's gmond.conf is
> udp_send_channel {
> host = 192.168.0.220
> port = 8649
> }
> /* 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
> }

Off-hand, that appears to be correct.

> but when I configured this node's udp_send_channel to itself.
> it works OK.But if that, I can only get one node infomation.
> and one issue  confused me is that  why  the two node can only send
> udp_send_channel to itself?
> If I changed the udp_send_channel to other node,it does.t work.why this
> happened?

I think I am a bit unclear as to what exactly you are trying to achieve here.  
If you configure the second node's gmond.conf to send to itself 
(192.168.0.221), then the first node will never receive any metrics from it, 
and it won't appear in the web interface.  But you say that when you configure 
the second node to send metrics to the first node, it doesn't work.  Can you 
explain more about what doesn't work?

I recommend trying this configuration:

gmond.conf on 192.168.0.220:

  udp_send_channel {
    host = 192.168.0.220
    port = 8649
  }

  udp_recv_channel {
    port = 8649
  }

  tcp_accept_channel {
    port = 8649
  }

gmond.conf on 192.168.0.221:

  udp_send_channel {
    host = 192.168.0.220
    port = 8649
  }

  udp_send_channel {
    host = 192.168.0.221
    port = 8649
  }

  udp_recv_channel {
    port = 8649
  }

  tcp_accept_channel {
    port = 8649
  }

On 192.168.0.221, you should be able to run "telnet localhost 8649" and see 
the metric data for that host.  On 192.168.0.220, you should be able to run 
"telnet localhost 8649" and see the metrics for both hosts.  If that doesn't 
work, then you may need to take a closer look at your network to make sure 
that packets are being sent between the hosts properly.

-- Rick

--------------------------
Rick Mohr
Systems Developer
Ohio Supercomputer Center

Reply via email to