[collectd] How to store MySQL statistics?
octo at verplant.org
Tue Dec 20 22:03:46 CET 2005
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 ;)
Florian octo Forster
Hacker in training
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20051220/c4892fd1/attachment-0001.pgp
More information about the Collectd