[drraw-users] Templates
Christophe Kalt
kalt at taranis.org
Wed Jan 21 08:14:17 MST 2009
> It seems to me that wiki example is not good. Please not that FileRE contains
> strict directory names. So my experiences shows that this two RE are independent.
> My config example is at http://www.man.poznan.pl/~tomeks/template.PNG
The portion in red is wrong.
You're trying to combine 2 templating features which is fine, but more complex.
So you have this: [IP of the machine]-stattype-name1-name2.rrd
If you want to restrict the graph to files ending in name2.rrd, this
should be all you need:
Base RE: .+-stattype-.+-(.+)\.rrd
Selection RE: $1
.+\.1-stattype-(.+)-(.+)\.rrd: .+\.1-stattype-(.+)-$1\.rrd
Another way to think about this is that you should have created that
graph to start with. Therefore, the "File RE" for the DS would have
been: .+\.1-stattype-(.+)-name2\.rrd
Then, and only then you convert the working graph to a Template where
"name2" becomes a variable.
Hope this helps,
Christophe
More information about the drraw-users
mailing list