[mrtg] Re: Mrtg and machine performace...

Isaac Grover isaac at coe.engr.sjsu.edu
Fri Jul 6 18:33:40 MEST 2001


"Perry, Duane" wrote:
> I have a Dell server class machine with dual processors.  I was polling
> about 1700 targets (interfaces) using rateup and it was working hard to keep
> up.  I was afraid to add anything to it.  I finally tried the Forks: 4
> option and I think it has made a dramatic difference.  If you are running
> linux I would recommend you try this.  I have been working on converting to
> rrd to ease the processor crunch because we want to extend MRTG monitoring
> to the desktop on our whole campus (possibly 10,000 interfaces) and I knew
> our current machine could not handle that.  I may try adding more to the
> current machine to see what it can do now that I am using Forks.  I don't
> know about the Daemon option but it sounds like more memory would help.

Duane,

My situation was similar to yours in that my monitor box was
watching thousands of interfaces and it was always overworked,
even using RRDTool.  So I wrote a stupid perl script that
inserted "RunAsDaemon: yes" into all the configs, and as the .pid
files showed up it removed the corresponding entry from the
crontab.  It was a quick hack, and I watched my load avg go from
roughly 0.96 to 0.03 over the next several hours.

Keep in mind that RunAsDaemon works best if the
configs/interfaces don't change on a regular basis.  Otherwise
there may be more tedious work in it for you than the change
would be worth.

--
Isaac Grover - isaac at coe.engr.sjsu.edu
SJSU College of Engineering, ECS / Networking
ENG 237, (408) 924-3893

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