[collectd] Plain text protocol question
Florian Forster
octo at verplant.org
Wed Oct 21 10:29:29 CEST 2009
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/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20091021/340fb997/attachment.pgp
More information about the collectd
mailing list