13.5. PitfallsMany SNMP-capable devices change the order of interfaces in the interfaces table whenever a new interface card is inserted or an old one is removed. If you run a fairly static router environment (i.e., you hardly ever add or remove cards from your routers), the configuration examples we've shown should work well for you. But in today's fast-paced network environments, stability is rare. MRTG's cfgmaker command provides a command-line option, - -ifref, to help with this problem. It doesn't solve the problem, but it does allow you to generate graphs in which interfaces are labeled with their addresses, descriptions, or names; with this information, you don't have to remember whether interface 1 is your local network interface or your T1 connection. Table 13-2 summarizes the usage of - -ifref.Table 13-2. Summary of --ifref Options
Thus, to label interfaces with their IP addresses, run cfgmaker like so: Be sure to read the cfgmaker manual that comes with the MRTG documentation.[root][linuxserver] ~/mrtg-2.9.10> cfgmaker --global 'WorkDir: /mrtg/images' \ --output /mrtg/run/mrtg.cfg --ifref=ip public@router Copyright © 2002 O'Reilly & Associates. All rights reserved. |
|