I have tried the new release 3.0.3.200602231926
without success on FreeBSD 4.11 - the xml is still
truncated when attempting to access the data from a
remote host.  Interestingly, this is not the case when
trying from the host running gmond.  Based on the
strace, my colleague commented:

  Default socket buffer is 64K.  It appears that
socket is non-blocking.  That last write is failing
(EAGAIN) because the socket buffer is full.  The
application is ignoring that fact and shutting down
the socket.  Looks to me like an application bug that
just accidentally works on rhel.

  Please let me know if you need any more information.

Thank you,

Gil
-----------------------------------------------------

Running an strace on gmond (on the target host) while
trying to retrieve the data shows:
 71160 write(10, "<METRIC NAME=\"swap_free\"
VAL=\"41"..., 124) = 124
 71160 write(10, "<METRIC NAME=\"bytes_in\"
VAL=\"608"..., 129) = -1 EAGAIN
 (Resource temporarily unavailable)
 71160 shutdown(10, 0 /* receive */)     = 0

 What this looks like from the requester (not the
exact same transaction):

 <METRIC NAME="mem_buffers" VAL="204096" TYPE="uint32"
UNITS="KB" TN="119" TMAX="180" DMAX="0" SLOPE="both"
SOURCE="gmond"/>
 <METRIC NAME="swap_free" VAL="4194136" TYPE="uint32"
UNITS="KB" TN="119" TMAX="180" DMAX="0" SLOPE="both"
SOURCE="gmond"/>
 Connection closed by foreign host.

 A normal transaction closes with a closing tag: </GANGLIA_XML>

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to