[collectd] tail plugin counting problems
Florian Forster
octo at verplant.org
Fri Sep 26 16:28:42 CEST 2008
Hi loomy,
On Tue, Sep 16, 2008 at 10:27:05AM +0200, Matthias Lay wrote:
> my config section
your config looks good.
> now my problem is, the counting only works if the file is truncated.
> it counts the lines correctly one time and afterwards I only get 0
> values.
That's weird. Is the file on some special filesystem or something? In
each iteration, the code just tries to read some more using `fgets'. If
the end of the file is reached, the sizes (as returned by stat(2)) are
compared. Special devices such as pipes probably have problems with
that.
> Is this a bug or am I doing something wrong?
I'm not sure. From what I've seen, your config looks okay. I haven't
seen this behavior yet, though, so it doesn't seem to be a every-day
issue either.. Is there anything that makes your setup special or
uncommon?
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/20080926/52766fb5/attachment.pgp
More information about the collectd
mailing list