You may want to look at the Directory target option. I use the same WorkDir in my common.cfg as below and specify different Directory options for different targets.
-----Original Message----- From: Daniel J McDonald [mailto:[EMAIL PROTECTED] Sent: Monday, October 27, 2003 9:22 AM To: Eric Cornwell Cc: mrtg Subject: [mrtg] Re: Include: Question... 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: #common.cfg # 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/CISCO-TC-V1SMI.my /usr/share/snmp/mibs/CISCO-PROCESS-MIB-V1SMI.my /usr/share/snmp/mibs/CISCO-QOS-PIB-MIB-V1SMI.my /usr/share/snmp/mibs/CISCO-MEMORY-POOL-MIB-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: #mrtg.cfg # 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 <[EMAIL PROTECTED]> Austin Energy -- Unsubscribe mailto:[EMAIL PROTECTED] 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 -- Unsubscribe mailto:[EMAIL PROTECTED] 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
