[mrtg] Re: cfgmaker
Alex van den Bogaerdt
alex at slot.hollandcasino.nl
Tue Aug 28 19:21:40 MEST 2001
Daniel R . Kilbourne wrote:
>
>
> Question for those of you that use cfgmaker out there. Is there a way to have cfgmaker not print out any down interfaces? I usually hand-edit configs after building them, but I am trying to automate some stuff, and would like to leave any down interfaces out of the config for clarity.....
If the other suggestions do not help:
In cfgmaker look for the place saying "comment out the target lines".
Maybe change it in something like
if ($target_lines && not $if_ok) # comment out the target lines if needed
{
$target_lines =~ s/^/\# /gm;
}
if ($if_ok) {
$conf .= ($head_lines
. $problem_lines
. $target_lines
. $separator_lines);
}
Just two lines added, easy to test, seems to work for me.
Of course this hack needs to be configurable would it ever have
a chance to make it into the distribution.
cheers,
--
__________________________________________________________________
/ 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