[mrtg] Re: mrtg-rrd.cgi - Multiple Config Files

Eric Brander eric_mailing_list at rednarb.com
Mon Jan 3 18:32:11 MET 2005


Matt Zufelt wrote:

>Eric,
>
>All you need to do is separate the entries with white space.  Here's an example:
>
>BEGIN { @config_files = qw(/mrtg/bin/cfg/mrtg1.cfg /mrtg/bin/cfg/mrtg2.cfg
>	/mrtg/bin/cfg/mrtg3.cfg /mrtg/bin/cfg/mrtg4.cfg
>	/mrtg/bin/cfg/mrtg5.cfg /mrtg/bin/cfg/mrtg6.cfg );}
>
>Afer all the config filenames are entered, close things out with the closing parenthesis, semi-colon, and closing brace.
>
>Matt Zufelt
>
>  
>
Thank you all for your help on this. This works!

One problem though... it is SLOW! The more configs I add to that list 
the slower the script runs.  Even for just listing out one item it runs 
dog slow compared to a cgi with just one target cfg in it! Its as if it 
has to parse every config file every time you click a link!  Limitations 
of the script?  Oh well I guess I need to try something else.

Thanks for your help.

Regards,

Eric Brander

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