[mrtg] Re: unknown values

Tobias Oetiker tobi at oetiker.ch
Thu Aug 17 08:52:25 MEST 2006


Hi Steve,

the reson this works is because mrtg sends the target lines through
an eval pass after substituting the target expressions with perl
variable names ... what it poils down to is, that you can use any
perl code in a target line that does not look like a taret itself
.. and you have to make sure that the target is separated from the
rest of the code by whitespace ...

chers
tobi

ps this btw is not new, I just never bragged about it ...

Today Steve Shipway wrote:

> Tobi Wrote:
> >David Wrote:
> > > Is there anyway to do this?
> >
> > yes, write your targets like this
> > target[..]: 1:bla at serv1 || 0 + 4:bla at serv2 || 0
>
> Oh, I like that.  This must be a relatively new MRTG ability, I don't
> remember the || operator being there before.  I must take a look at the
> latest version docco and see what else has been added.
>
> Steve
>
> --
> Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
> Archive     http://lists.ee.ethz.ch/mrtg
> FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
> WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi
>
>

-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten
http://tobi.oetiker.ch tobi at oetiker.ch ++41 62 213 9907

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



More information about the mrtg mailing list