25 Mar
2010
25 Mar
'10
2:46 p.m.
Hello the list,
after some hard time trying to know which RE is used for FNPATTERN in the hobbit/etc/hobbitgraph.cfg. I've finally found that it use the lib pcre. in the source. God bless the source code.
So could you change the hobbitgraph.cfg comments to add specific info about this.
why not changing this: ----%<----%<----%<----%<----%<----%<----%<----%<----%<----%<----%<
For graphs that use multiple RRD files as input, you specify a filename
pattern in the FNPATTERN statement, and optionally a pattern of files
to exclude from the graph with EXFNPATTERN (see "[tcp]" for an example).
When FNPATTERN is used, you can use "@RRDFN@" in the RRDtool definitions
to pick up each filename. "@RRDIDX@" is an index (starting at 0) for each
file in the set. "@RRDPARAM@" contains the first word extracted from the
pattern of files (see e.g. "[memory]" how this is used). "@COLOR@" picks
a new color for each graph automatically.
----%<----%<----%<----%<----%<----%<----%<----%<----%<----%<----%< to this: ----%<----%<----%<----%<----%<----%<----%<----%<----%<----%<----%<
For graphs that use multiple RRD files as input, you specify a filename
pattern in the FNPATTERN[1] statement, and optionally a pattern of files
to exclude from the graph with EXFNPATTERN (see "[tcp]" for an example).
When FNPATTERN is used, you can use "@RRDFN@" in the RRDtool definitions
to pick up each filename. "@RRDIDX@" is an index (starting at 0) for each
file in the set. "@RRDPARAM@" contains the first word extracted from the
pattern of files (see e.g. "[memory]" how this is used). "@COLOR@" picks
a new color for each graph automatically.
[1]FNPATTERN is following the Perl Compatible Regular Expression Library
(pcre), more info on : http://www.pcre.org
http://perldoc.perl.org/perlre.html
----%<----%<----%<----%<----%<----%<----%<----%<----%<----%<----%<