[collectd] how to save data into text file?

GianLuca Sarto gianluca.sarto at gmail.com
Fri Jun 19 11:08:34 CEST 2009


sorry, I did mean to reply to the list, but I made a mistake.

It's quite possible that collectd is not apt to do what I want.

The serial device logs its activity through a serial port.
If I had a serial printer connected, it would print:


Now, I could direct connect an old pc, open the serial port, and collect 
the data in a file, but it seems a bit an overkill to maintain a host 
just to do that.

On the same lan, I have a Linux host that could do the job, so here's 
where the serial to ethernet converter comes in.

I just want to append the string that comes out from the serial device, 
in a text file, on the remote host.


Sebastian Harl wrote:
> Hi Gian,
> On Fri, Jun 19, 2009 at 09:50:17AM +0200, GianLuca Sarto wrote:
>> The serial output is a string formatted as a csv file:
> The unixsock plugin does not understand that kind of data. It defines
> its own protocol that has to be used when submitting data to it.
>> If the string is appended to a text file, I could view it with Apache,  
>> or later import it in an XLS or mySQL table.
> Well, collectd is not about providing generic means to process random
> (text) data but rather about processing "streams" of time-series data,
> i.e. numeric data associated with time stamps.
> I'm still not entirely sure what you're trying to do. Maybe you should
> tell us a little bit more about your setup but I suspect that collectd
> is not what you're looking for.
> What you _could_ do though is to come up with a new plugin (written in
> C, Perl or Java) that provides a socket and parses the output of your
> converter and then submits that data to collectd.
> HTH,
> Sebastian
> PS: Btw., did you reply off-list on purpose? If not, do you mind if I
>     bounce your E-mail and my response to the list?

voice +39-02-4895.0008
fax   +39-02-4771.9725

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.verplant.org/pipermail/collectd/attachments/20090619/f06301ab/attachment-0001.htm 

More information about the collectd mailing list