Hi,
I spoof a bunch of temperature and power metrics via ILOM for a few
hundred nodes and I noticed that gmetad wasn't making a summary table
(.../__SummaryInfo__/*) for most of the spoof'd values.
turns out that there's a SPOOF_HOST EXTRA_ELEMENT attached to each
spoof'd metric, and when 100's of hosts (>40 or so should trigger it)
have spoof'd entries, then those add up and then corrupt the summary
Metric structure enough to destroy the .type and stop the rrd being
generated.
I'm guessing it's the same as the MAX_EXTRA_ELEMENTS problem, except
for the summary table instead of the host table.
attached is a simplistic patch that fixes the problem.
it could probably be done better, but works for me. it's against 3.1.2,
but should apply to 3.1.4 as well.
apologies if I have some of the ganglia/gmetad terminology wrong - I've
been using it for years, but this my first dive into the code.
cheers,
robin
--
Dr Robin Humble, HPC Systems Analyst, NCI National Facility
diff -ruN ganglia-3.1.2.orig/gmetad/process_xml.c
ganglia-3.1.2/gmetad/process_xml.c
--- ganglia-3.1.2.orig/gmetad/process_xml.c 2009-01-29 10:23:20.000000000
+1100
+++ ganglia-3.1.2/gmetad/process_xml.c 2009-11-07 17:24:40.000000000 +1100
@@ -775,6 +775,13 @@
const char *new_name = attr[name_off+1];
const char *new_value = attr[value_off+1];
+ /* do not add SPOOF_HOST elements to the summary table.
+ if the same metric is SPOOF'd on more than ~MAX_EXTRA_ELEMENTS hosts
+ then its summary table is destroyed.
+ */
+ if ( strlen(new_name) == 10 && !strncmp(new_name, "SPOOF_HOST", 10) )
+ return 0;
+
metric.ednames[metric.ednameslen++] = addstring(metric.strings, &edge,
new_name);
metric.edvalues[metric.edvalueslen++] = addstring(metric.strings,
&edge, new_value);
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Ganglia-developers mailing list
Ganglia-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-developers