Hi Jean,

On Thu, Oct 08, 2009 at 12:00:13PM +0200, Jean Baptiste FAVRE wrote:
> But the first step is to be able to get values. Therefore, I activated
> Unix Socket plugin and try to get data.

yeah, currently you need to do polling for this. I'd much prefer if
there was an elegant way to switch the connection into a value sending
mode, kinda like a live-stream.

I can basically think of two possibilities:

  GETLIVEVAL 500
  Registers a write callback and sends each value dispatched to that
  write-callback to the remote side. After 500 values, removes the write
  callback and waits for the next command.
  This probably seems a bit artificial but preserves the request /
  response semantic of the rest of the protocol.

  SETLIVEMODE
  Registers a write callback and sends each value being dispatched to
  the remote host. No more commands will be accepted and the sending can
  only be stopped by closing the connection. This is likely what many
  applications intend to do.

Would that solve your problems?

Regards,
—octo
-- 
Florian octo Forster
Hacker in training
GnuPG: 0x91523C3D
http://verplant.org/

Attachment: signature.asc
Description: Digital signature

_______________________________________________
collectd mailing list
collectd@verplant.org
http://mailman.verplant.org/listinfo/collectd

Reply via email to