On Thu, 24 Jan 2008, Brad Nicholes wrote:
> 1. The spoofing is done by adding some extra data to the XDR packets that are > sent from gmetric to other gmond's and also by adding extra data to the XML. > > 2. Currently spoofing only works from gmetric. However there is some working > being done to make it also work directly from gmond. But this work will only > be available in Ganglia 3.1.x. > > 3. In the current gmond, you would have to recreate everything through > gmetric that gmond is already doing. This would mean a lot of processes > coming and going all of the time. Once spoofing has been added to gmond, it > may just be a matter of some extra processing that has to take place to make > sure that all of the metrics are being recorded correctly, I don't believe > that there would be an performance issues. But we will have to wait and see > how everything shakes out in gmond. > > Brad > > >>> Ben Hartshorne <[EMAIL PROTECTED]> 1/24/2008 8:29 AM >>> > Hi All, > > I'm trying to get ganglia metrics from some hosts that are hiding behind > a NAT box. Obviously, since ganglia identifies the sender using reverse > DNS on the sending host, this does not work. > > I have read about the host spoofing patch, and have three questions: > * does it actually spoof the IP address in the IP header, or does it > insert some extra information into the XML stream saying 'hey, I'm > spoofing this other computer, ignore my actual IP address'? [1] > * does the spoofing only work in gmetric, or is there a way to ask gmond > to spoof addresses using the same logic? > * Is there some reason it would be a bad idea to have *every* reporting > host "spoof" their own IP address? Is there a big performance hit or > anything? Because I'd almost rather just have every host report who > they are in the stream and then I don't need to worry about the > network layout nearly so much. This is an interesting idea. Currently the IP address and the HOST name are part of the XML header. Every spoofed metric contains the host / IP address as well. So spoofing every metric would add something to the XML data stream, though not much. Wrt to your NAT problem: I don't really see your problem. Can't you have one gmond behind the NAT that all other machines behind that NAT point to ? In that case that one dedicated gmond would act as a proxy for all other machines. So only this proxy gmond should be subject to reverse DNS lookups, no ? Matthias > > Thanks, > > -ben > > [1] If the former, it will get squished by the NAT and won't work. If > the latter, it will get through the NAT and all will be well. I'm > guessing it's the latter, because otherwise you wouldn't be able to use > TCP to send the information (since the handshake would never complete). > > -- > Ben Hartshorne > email: [EMAIL PROTECTED] > http://ben.hartshorne.net > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Ganglia-general mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/ganglia-general > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Ganglia-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ganglia-general

