[mrtg] One Master Config versus Several

Chuck.Coker at rcc.edu Chuck.Coker at rcc.edu
Wed Apr 6 22:13:21 MEST 2005


Hi Folks,

My MRTG box is underpowered and this causes a lot of problems.
Unfortunately, I don't have many options.

Currently, I have one master config file that is arranged like this:

mrtg.cfg

    Include: router-1.cfg
    Include: router-2.cfg
    Include: router-3.cfg
    Include: switch-1.cfg
    Include: switch-2.cfg
    Include: switch-3.cfg

and so on.

After I include x number of devices, the MRTG script can't complete its
polling cycle in five minutes or less and I have a new instance of MRTG
starting before the last one has finished. Eventually this leads to an
"out of swap space" condition which locks up the box.

I was wondering if it would help to arrange files like this:

mrtg-1.cfg

    Include: router-1.cfg
    Include: switch-1.cfg

mrtg-2.cfg

    Include: router-2.cfg
    Include: switch-2.cfg

mrtg-3.cfg

    Include: router-3.cfg
    Include: switch-3.cfg

and have cron start them one minute apart.

My thoughts are that doing all that including in a single mrtg.cfg file
eats up a lot of resources and I could make better use of what I have by
spreading things around a little bit.

Has anyone tried this? If so, what happened? Would this help stop
overlapping processes? Or would it still have the same problem just with
more files to maintain and worry about?

Thanks,
Chuck

----------------------------------------------------------------
Chuck Coker                             chuck.coker (et) rcc.edu
       Riverside Community College, Information Services
4800 Magnolia Avenue, Riverside, California 92506, United States
+1 951 222 8759 (desk)                    +1 951 830 8068 (cell)
----------------------------------------------------------------

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