preston-

you will need to have three different web pages for the three different 
networks: call them group A, B, and C.  i assume that all the machines on 
each seperate net can see each other via multicast.

take one machine on each group and start the gmond with "./gmond 
--trusted_host <ip of webserver>".  to see if you can query each net 
group.. run "telnet <ip of gmond for group A> 8649" and you should see 
XML... do likewise with group B and C.

now.. you need to modify line 873 "ganglia.php" from
$rval = __ganglia_data( "localhost", 8649, 15);
to
$rval = __ganglia_data( "<ip of gmond for group A>", 8649, 15);

and.. you need to modify line 122 of "ganglia-rrd.pl" from
      my $xml_data = IO::Socket::INET->new(
               Proto    => "tcp",
               PeerAddr => "localhost",
               PeerPort => "8649",
to
      my $xml_data = IO::Socket::INET->new(
               Proto    => "tcp",
               PeerAddr => "<ip of gmond for group A>",
               PeerPort => "8649",
etc etc for B and C group.

you also need to make sure that each instance (there will be three) of 
ganglia-rrd.pl has a different rrd directory specified...

see lines 4-7 of ganglia-rrd.pl.

there is a new web interface coming soon which will make this complication 
disappear.

good luck!  let me know how it goes.
-matt

Mar 18, Preston Smith wrote forth saying...

> I'm using ganglia for monitoring our general-use network, rather
> than a cluster. Our environment is set up using 3 physical networks,
> which our servers are spread around on.                              
> 
> Let's say our webserver, the one running ganglia-rrds.pl, is on net #1.
> Server X is on net #3.
> 
> All of my systems sitting on net #1 show up fine in the php web interface,
> but I can't get the system on net #3 to let the other systems know about it.
> 
> I've tried using various combinations of --trusted_host to get 
> 'Server X' to tell the webserver's gmond what it needs to, but all to no
> avail.
> 
> Some systems are multi-homed on all three networks, and I've tried various
> combinations of --xml_port, --mcast_if, and --mcast_port.
> 
> Is there a good way to do this? I suspect I'm having some kind of brain
> block and either misunderstanding how to use --trusted_host, or just
> overlooking something obvious.
> 
> Additionally, is it feasible to add an option to have gmond listen to 
> port 8649 on all interfaces?
> 
> 


Reply via email to