[mrtg] Re: cfgmaker

James Overbeck grendel at interq.ad.jp
Tue Aug 28 15:45:30 MEST 2001


How about the experimental template feature in 2.9.17? A template
interface that would do what you want might look like this:

$target_lines = ($if_ok) ? $default_target_lines : '';

Bets regards,
James


"Daniel R . Kilbourne" wrote:
> 
> yeah...that would work
> 
> but, I am looking for automation - I would like the lines to be left out upoin initial creation of the file
> 
> I think I will investigate the 'if-filter' option
> 
> James Overbeck extolled:
> >
> >       I think I follow... You don't even want the commented-out interfaces,
> > correct?
> >       Quick and dirty solution is a simple grep that leaves out all commented
> > lines, even the possibly useful ones. But it does make the file smaller.
> >
> > grep -v ^# mrtg.cfg > new-mrtg.cfg
> >
> > HTH,
> > James
> --
> --------------------------------
> Daniel R. Kilbourne
> daniel.kilbourne at corecomm.com
> CoreComm Systems Engineering
> ________________________________

--
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