[mrtg] Re: Global options vs. unit options

Alex van den Bogaerdt alex at slot.hollandcasino.nl
Fri Nov 10 01:46:55 MET 2000


Paul C. williamson wrote about Options[_]: growright

and Merton Campbell Crockett replied:

> Unless Tobi (or others) decided to the change the way things have worked
> and thus breaking a lot of ancient configuration files, the global tags
> only apply to a target for which that particular tag is not defined.
> 
> So, if you need some other options for a particular target but still want
> to growright, you need to specify ALL the options that you want for that
> target.

"whatever[_]: something" is a DEFAULT.  It has always been just that.
A default means that you can override it and that's what's happening
when you specify a more specific entry in a target definition.

"whatever[^]: something" is NOT a default.  It will apply, also if a
more specific entry is made (same applies for "[$]" as a suffix).

You can modify those global options just before any target definition,
it will be applied from that point in the config file towards the end.

So:
Assume 26 targets (a, b, ... z) and you want to use "bit" on each of
them but the last, while using "growright" only on target b:
Options[^]: bits
[...]
Target[a]: [...]
[...]
Target[b]: [...]
Options[b]: growright
[...]
Options[^]:
Target[z]: [...]

See also "NoSpaceChar"

This is all documented in reference.{pod|txt|html} so if you don't
understand it, please indicate where you loose track of it.

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