[collectd] How to store MySQL statistics?

Florian Forster octo at verplant.org
Tue Dec 20 22:03:46 CET 2005


Hi :)

On Tue, Dec 20, 2005 at 06:31:42PM +0100, Jan Huijsmans wrote:
> I would prefer to use 1 method for all / replacements, as it helps
> with processing the rrd files lateron. (in graph generation)

That was my intension when posting the `algorithm' to the list.. I'd
like best to have a function `common_escape_slashes' in `common.c' which
does this in a uniform way. All plugins that need to store slashes in
filenames (usually a path) should then use this function..

I don't have a strong opinion of how this should be done, as long as
it's within reasonable limits.. (Using the asterisk as I jokingly
suggested would be off those limits ;) I used the version described
because it's trivial to implement (since the length of the string is not
incremented), well readable and works for me..

> > [underscores in filenames]
> Personally, I prefer not to use them, but on the previous job they
> used them very often, as a space is an invalid character.

It is? On what system was that? As far es I know the only restriction
UNIX system make is that a filename may not contain `/' (slash) and "\0"
(the null byte). And although I'm not too sure about that I didn't come
accross a system that did not allow ` ' (space) in filenames since
putting that old DOS where it belongs ;)

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/20051220/c4892fd1/attachment-0001.pgp


More information about the Collectd mailing list