[mrtg] Re: Include: Question...

Eric Cornwell e-cornwell at onu.edu
Mon Oct 27 15:32:07 MET 2003


Thanks for your quick reply!  The thing that's different between each
file is the LogDir, HtmlDir, and ImageDir.  Those are the directories
that I need to be different. 
Ex: switch1A has HtmlDir: www/A ImageDir: www/A/Image LogDir: logs/A
    switch1B has HtmlDir: www/B ImageDir: www/B/Image LogDir: logs/B

Is that possible?
Thanks
Eric

    

-----Original Message-----
From: mrtg-bounce at list.ee.ethz.ch [mailto:mrtg-bounce at list.ee.ethz.ch]
On Behalf Of Daniel J McDonald
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 <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

--
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