[mrtg] Re: Target[_]
Jerry Heidtke
jheidtke at fmlh.edu
Mon Dec 9 23:32:47 MET 2002
You're right, you could be wrong...
Mrtg reads the lines in the config "one at a time" (in other words,
sequentially). If you have a default set with, for example "Options[_]:
growright, nopercent", and later on you have Options[_]: growright, guage",
the first set will be applied to any targets defined between the two default
Option lines, and the second set will apply to those that follow.
In other words, setting a default applies to all following targets, unless
specifically overridden.
You could have "Options[_]: growright, nopercent" at the top of your config.
In the middle, you could have "Options[someservercpu]: growright, gauge".
For the target someservercpu, "growright, gauge" will be applied. For
targets before and after this, "growright, nopercent" will be applied.
To answer an earlier question (If you define a global variable as having
"Options[_]: growright, bits", and you later define
"Options[router.here.com]: bits", will growright still be assumed and come
into effect on target [router.here.com] or will that specific graph "grow
left"???)
With "Options[router.here.com]: bits", only "bits" will be in effect for the
target router.here.com. Nothing is assumed.
Jerry
-----Original Message-----
From: Dominic Irrcher [mailto:dirrcher at colosseum.com]
Sent: Monday, December 09, 2002 4:13 PM
To: 'Meyer, Douglas S.'; 'Dave Morrow'; 'mrtg at list.ee.ethz.ch'
Subject: [mrtg] Re: Target[_]
from what i gather, the global will have precidence as it came before
(before the first interface) any of the interface options you put in.
i could be wrong, mrtg might be reading the lines in the config one at a
time, which would mean that whatever options you specify for an interface
will come into effect.
Dominic Irrcher
B.Sc, MCP, CCDA
Web Administrator
Colosseum Online Inc.
416.739.7873
------------------------------------------------
Nothing is ever a complete failure. It can always be used as a bad example.
-----Original Message-----
From: Meyer, Douglas S. [mailto:doug at dougm.com]
Sent: Monday, December 09, 2002 5:02 PM
To: Dominic Irrcher; 'Dave Morrow'; mrtg at list.ee.ethz.ch
Subject: RE: [mrtg] Re: Target[_]
Which begs the question: If you define a global variable as having
"Options[_]: growright, bits", and you later define
"Options[router.here.com]: bits", will growright still be assumed and
come into effect on target [router.here.com] or will that specific graph
"grow left"???
I read the Default Values example on the config reference...it still
doesn't make sense to me.
> -----Original Message-----
> From: mrtg-bounce at list.ee.ethz.ch [mailto:mrtg-bounce at list.ee.ethz.ch]
On
> Behalf Of Dominic Irrcher
> Sent: Monday, December 09, 2002 3:26 PM
> To: 'Dave Morrow'; 'mrtg at list.ee.ethz.ch'
> Subject: [mrtg] Re: Target[_]
>
>
> its a global variable
>
> like the options variable: Options[_]: growright, bits
>
> just means that you won't have to enter the options line for every
> interface
> in your config (which could be very tedious if you have alot of
> interfaces)
>
>
>
>
> Dominic Irrcher
> B.Sc, MCP, CCDA
> Web Administrator
> Colosseum Online Inc.
> 416.739.7873
> ------------------------------------------------
> Nothing is ever a complete failure. It can always be used as a bad
> example.
>
>
>
>
> -----Original Message-----
> From: mrtg-bounce at list.ee.ethz.ch
[mailto:mrtg-bounce at list.ee.ethz.ch]On
> Behalf Of Dave Morrow
> Sent: Monday, December 09, 2002 3:18 PM
> To: mrtg at list.ee.ethz.ch
> Subject: [mrtg] Target[_]
>
>
>
> I see people using [_] as a target name. What exactly does this do?
>
> David Morrow
> Network Administrator
> Autodata Solutions Company
> Ph: (519) 951-6067 Fax: (519) 451-6615
> mailto: David.Morrow at autodata.net
>
>
> This message has originated from Autodata Solutions Company. The
attached
> material is the Confidential and Proprietary Information of Autodata
> Solutions Company. This email and any files transmitted with it are
> confidential and intended solely for the use of the individual or
entity
> to
> whom they are addressed. If you have received this email in error
please
> delete this message and notify the Autodata system administrator at
> Administrator at autodata.net
>
>
> --
> 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
>
> --
> 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
--
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
Confidentiality Notice: This e-mail message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of the original
message.
--
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