Hello,

I'm using collectd to monitor system and process parameters of our
code under test running on a cluster. The test processes communicate
to collectd via the unixsock plugin, but there was a small error in
the client library which I had to fix first.

The wire format of the putval command is missing a space behind the
closing double quote of the identifier. As I said, it is a small fix,
but nevertheless I attached the patch for client.c. The bug is present
in 4.6 (that is the version I'm using in production), but I fixed it
against 4.10.0.

Cheers,
Johan

-- 
"The future is here. It's just not evenly distributed yet." - William Gibson
*** collectd-4.10.0/src/libcollectdclient/client.c	2010-05-01 11:15:45.000000000 +0200
--- /home/johan/collectd-4.10.0/src/libcollectdclient/client.c	2010-05-11 22:37:38.832584737 +0200
***************
*** 777,785 ****
      SSTRCATF (command, " interval=%i", vl->interval);
  
    if (vl->time > 0)
!     SSTRCATF (command, "%u", (unsigned int) vl->time);
    else
!     SSTRCAT (command, "N");
  
    for (i = 0; i < vl->values_len; i++)
    {
--- 777,785 ----
      SSTRCATF (command, " interval=%i", vl->interval);
  
    if (vl->time > 0)
!     SSTRCATF (command, " %u", (unsigned int) vl->time);
    else
!     SSTRCAT (command, " N");
  
    for (i = 0; i < vl->values_len; i++)
    {
_______________________________________________
collectd mailing list
[email protected]
http://mailman.verplant.org/listinfo/collectd

Reply via email to