[mrtg] [_] vs. [^] vs. [$] vs. [xyz]

Alex van den Bogaerdt alex at slot.hollandcasino.nl
Tue Aug 28 16:36:41 MEST 2001


People,

Not every problem will be caused by this however I suspect that some
of you struggle with the following:

    Options[_]: bits, growright

means: set a default for the options to bits and growright.
If you have a Target and do not specify an options line in
it, the default will be used.  However, if you do specify
an options line, the default will be overriden.

If you want to set an option for each and every target, use

    Options[^]: bits, growright

as this specifies a prefix.  You can now include an option
line in the target and this will be appended to the prefix
and the complete option line is used for this target.  A
similar thing can be done using Options[$]: bits, growright
only this is appended, not prepended.

Multiple occurances of Options[_] can occur.  The default is
valid from that moment on, so only for targets below the line.

   Options[^]: bits
   Options[_]: growright
   ...
   Target[xyz.1]: ...
   ...
   Target[xyz.2]: ...
   Options[xyz.2]: nopercent
   ...
   Options[^]:
   Options[_]: growright,nopercent
   ...
   Target[xyz.3]: ...

The resulting options would be:
   xyz.1:    bits growright
   xyz.2:    bits nopercent   (and NO growright!!!)
   xyz.3:    growright nopercent

I haven't tested this, doing it from memory, so maybe I made a mistake.
Don't take it for granted.  However, the basic principles will be
correct.

For more information, please read doc/reference.txt (or its HTML
equivalent in the same dir, or on the web).

If any of you is helped with this mail please let me know (no need to
let the list know).  If the number of replies is sufficient I'll include
it in the FAQ.

HTH
-- 
   __________________________________________________________________
 / alex at slot.hollandcasino.nl                  alex at ergens.op.het.net \
| work                                                         private |
| My employer is capable of speaking therefore I speak only for myself |
+----------------------------------------------------------------------+
| Technical questions sent directly to me will be nuked. Use the list. | 
+----------------------------------------------------------------------+
| http://faq.mrtg.org/                                                 |
| http://rrdtool.eu.org  --> tutorial                                  |
+----------------------------------------------------------------------+

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list