[mrtg] Re: Reading config files -- FAST

Rainer Bawidamann Rainer.Bawidamann at rz.uni-ulm.de
Fri Sep 15 14:01:54 MEST 2000


In article <20000913100710.P297 at nextra.com>,
	bn at nextra.com (Bjorn Nordbo) writes:

>> b. Change mrtg/MRTG_lib so every access to configuration is done thru a
>>    function/method. These functions can get the config from a dbm file
>>    or sql database ... (or tie - but the config structures are not
>>    simple hashes but hashes of hashes of ...)
> 
> I settled for this solution using MLDBM with DB_File and Storable.

MLDBM is very interesting, altough it's not really a multi-level hash
DB. Thanks for the tip.

> As I generate the large configs every third hour, it is easy for me
> to read and parse them, and store them into a DB. The display script
> will check if the config has a matching DB which is newer, if yes
> use the DB, if no parse the config as before.

Did you change MRTG_lib? I'm thinking about doing this. Please mail me
your results and probably your solution. Thanks.

Rainer
-- 
Rainer.Bawidamann at rz.uni-ulm.de

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