Hi Matt,

It seems to work great now, thanks.
I've updated the bugzilla comments.

Kind regards,
- Ramon.

matt massie wrote:
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





-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Ganglia-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-developers

--
ing. R. Bastiaans            HPC - Systems Programmer

SARA - Computing and Networking Services
Kruislaan 415                PO Box 194613
1098 SJ Amsterdam            1090 GP Amsterdam
Tel. +31 (0) 20 592 3000     Fax. +31 (0) 20 668 3167
---
There are really only three types of people:

 Those who make things happen, those who watch things happen
 and those who say, "What happened?"


Reply via email to