guys-

i tracked down what was causing the gmetric output in gmond to be truncated. here is a part of the patch...

===================================================================
RCS file: /cvsroot/ganglia/monitor-core/gmond/gmond.c,v
retrieving revision 1.106
diff -r1.106 gmond.c
1054c1054,1055
<   char metricxml[1024];
---
> #define GMETRIC_BUFFER_SIZE (GANGLIA_MAX_MESSAGE_LEN + 1024)
>   char metricxml[GMETRIC_BUFFER_SIZE];
1060c1061
<   len = apr_snprintf(metricxml, 1024,
---
>   len = apr_snprintf(metricxml, GMETRIC_BUFFER_SIZE,
Index: lib/libgmond.c
===================================================================

the internal function print_host_gmetric() in gmond around line 1051 contained a buffer that was too small to hold the entire gmetric message.

the fix is checked into CVS. please test it to verify that you can send the maximum size gmetric message. i think you'll find it works just fine now.
--
[EMAIL PROTECTED]
  http://massie.us




Reply via email to