Hiya,

gstat always reports all hosts down in 3.2.0 because it hasn't been taught
about the new TAGS="" field that gmond.c added to the HOST XML line.
this patch fixes it. please apply.

cheers,
robin

--- ganglia-3.2.0.orig/lib/ganglia.c    2008-06-05 07:05:16.000000000 +1000
+++ ganglia-3.2.0/lib/ganglia.c 2011-09-23 16:34:52.000000000 +1000
@@ -69,7 +69,7 @@ start (void *data, const char *el, const
             }
 
          strcpy(cluster->host->ip, attr[3]);
-         cluster->host->last_reported = atol(attr[5]);
+         cluster->host->last_reported = atol(attr[7]);
 
          if( abs(cluster->localtime - cluster->host->last_reported) < 
GEXEC_TIMEOUT )
             {

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Ganglia-developers mailing list
Ganglia-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-developers

Reply via email to