[mrtg] Re: Interfaces up/down
Jeff Liebermann
jeffl at comix.santa-cruz.ca.us
Sun Aug 18 16:33:26 MEST 2002
On Fri, Aug 16, 2002 at 10:36:18AM -0500, Greg.Volk at edwardjones.com wrote:
> }I have a 200+ port switch with the interfaces almost
> }constantly going up/down due to additions/removals of host.
> }Do I need to recreate the config file every time a change is
> }made, or can I just uncomment every port in the config? My
> }thought was that if I uncomment everything, mrtg will puke (it
> }commented it out for some reason).
> }
>
> Uncommenting commented out interfaces should not produce any
> errors unless mrtg can not get the SNMP counter data. Most
> devices offer counter data whether or not the interface is
> up or down, so you should be okay for what you want to do.
>
> Since you don't care about up/down status, try using the
> --no-down flag on cfgmaker. Then you won't have to bother
> uncommenting stuff unless the speed is set to zero.
Yep. I got tired of trying to manage a big mess of targets
in a single mrtg.cfg file. So, I starting using the:
include: filename
incantation to read additional config files. I've never
tried using 200 includes (one file per port), but I guess
it's possible. That would simplify config management
requiring only that the include line for the unused port be
commented out, instead of an entire section of the mrtg.cfg
file. Try it and let me (or us) know what happens (or breaks).
--
# Jeff Liebermann Liebermann Design 150 Felker St #D Santa Cruz CA 95060
# 831.336.2558 voice 831.426.1240 fax 831.421.6491 digital_pager
# jeffl at comix.santa-cruz.ca.us http://www.LearnByDestroying.com
--
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