>>> On 11/7/2008 at 5:05 AM, in message <[EMAIL PROTECTED]>, Carlo Marcelo Arenas Belon <[EMAIL PROTECTED]> wrote: > On Thu, Nov 06, 2008 at 10:26:42AM -0700, Brad Nicholes wrote: >> >>> On 11/6/2008 at 5:07 AM, in message <[EMAIL PROTECTED]>, Carlo >> Marcelo Arenas Belon <[EMAIL PROTECTED]> wrote: >> > On Tue, Nov 04, 2008 at 06:13:47PM -0700, Brad Nicholes wrote: >> > the "C" interface seems to work fine at least in 3.1 (in trunk it messes >> > GMOND_STARTED as explained before) >> >> I responded to this issue in a separate thread. > > do you have a link to that thread?, I might somehow dropped of it then. > >> That meant that gmond was getting multiple heartbeat packets for the >> same host which caused the GMOND_STARTED value to flip-flop betweeni >> the various heartbeat values. > > GMOND_STARTED should never change because of a spoofing packet (unless that > is > what is being spoofed and that could be only done through the spoofing > support > in the modular metrics which is being discussed), LAST_REPORTED is the only > metric that should change with a heartbeat. >
This is how the code was designed and intended to function. There is nothing new here, it has always worked this way. If you send a spoof heartbeat that spoofs an existing host's heartbeat, gmond doesn't know the difference and will do exactly what it was told to do and that is set the GMOND_STARTED value for the host. The fact that the GMOND_STARTED value changed isn't the fault of gmond or a bug, it is a mis-use of spoofing by the user. >> Also if you had used gmetric to send a non-spoofed heartbeat, this will >> cause the GMOND_STARTED value to update. The reason why is because >> the gmetric heartbeat for your host will override the gmond heartbeat >> until the next time that gmond sends it's own heartbeat for the same host. > > this seems to be another bug to track and fix. > The code that handles this is in the function Ganglia_update_vidals() in gmond.c. If this code is changed or removed, the heartbeat will not be set for the host machine or for any machines that are being spoofed later, when the heartbeat value packets are received. Brad ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Ganglia-developers mailing list Ganglia-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ganglia-developers