[mrtg] Re: Include: Question...

Daniel J McDonald dan.mcdonald at austinenergy.com
Mon Oct 27 15:21:56 MET 2003

On Mon, 2003-10-27 at 07:39, Eric Cornwell wrote:
>  So my question, can you use the Include:
> function and have multiple paths?
> Ex of cfg.
> Include: c:\mrtg\bin\switch1A.cfg    #Directory A
> Include: c:\mrtg\bin\switch1B.cfg    #Directory B
> Include: c:\mrtg\bin\switch2B.cfg    #Directory B
> .
> .
> .
> Include: c:\mrtg\bin\switch4E.cfg    #Directory E
> This is just an example of how I have my directories/include set up.
> The reason I'm doing it this way is to lower the amount of wperl
> processes running.  Each config included is a standard config created by
> cfgmaker.

Yes, just be certain not to put globals in those files.  I have a
separate file for all of my globals:
LogDir: /var/mrtg/rrd/
HtmlDir: /var/mrtg/rrd/
ImageDir: /var/www/image
PathAdd: /usr/local/rrdtool/bin
LogFormat: rrdtool
Forks: 20
LoadMibs: /usr/share/snmp/mibs/CISCO-SMI-V1SMI.my 
/usr/share/snmp/mibs/sa.mib /usr/share/snmp/mibs/sh2.mib
/usr/share/snmp/mibs/ups.mib /usr/share/snmp/mibs/HOST-RESOURCES-MIB.txt

Then I include all of my files.  I have them separated into
subdirectories to make routers2.cgi look nice:
Include: /var/mrtg/cfg/common.cfg
Include: /var/mrtg/cfg/cameron/cameron-2620.cfg
Include: /var/mrtg/cfg/clayton/austincad-2620.cfg
Include: /var/mrtg/cfg/ctec/ae-ctec-radio-2950.cfg

Daniel J McDonald <dan.mcdonald at austinenergy.com>
Austin Energy

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