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

Steve Shipway s.shipway at auckland.ac.nz
Wed Jan 5 21:29:33 MET 2005


Eric Brander wrote:
>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 
...
>Alright folks, how about this?!?? Could I have one mrtg-rrd.cgi but 
>instead of hard coding the config files in the script, could I 
>put them on the URL?
If you are using a unix/linux server, then you can install speedycgi or
mod_perl.  These speed up a lot of things -- routers2.cgi will spot them and
cache the config files in shared memory and gets a huge speed increase, for
example.  I don't know about mrtg-rrd, but it should at least get some speed
gain.

The other thing looks a bit like a security risk (if you allow *any* file)
unless you restrict the path, in which case routers2 has this ability
already (and you can have a per-user filter on which cfg files are
permitted).  I think your idea with this, though, is to prevent the delay of
re-reading all the config files, which mod_perl or speedycgi can fix anyway.

(Apologies for the blatant plugging of routers2)

Steve

---
Steve Shipway: ITSS, University of Auckland
Email: s.shipway at auckland.ac.nz  Web: http://www.steveshipway.org/  
** We can only discover new oceans when we have the **
** courage to lose sight of the shore.              **

-- Attached file removed by Ecartis and put at URL below --
-- Type: text/x-vcard
-- Size: 155 bytes
-- URL : http://www.ee.ethz.ch/~slist/p/61-Steve%20Shipway.vcf


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