[mrtg] mrtg-rrd and big setup

Valton Hashani valton at ipko.net
Tue May 17 00:15:45 MEST 2005


Greetings all,
 If  you could give me any idea on this I would appreciate it.
First I would like to explain the setup of mrtg-rrd in our network. First it
came the idea for each host (router) to create a graph that displays its
traffic statistics. Than I wrote a php script which automatically creates
cfg files based on a selected interface for each host based on host id
(directory[host_id]: host_id). So there was a cfg file for each host. For
creating graphs I used simple bash script
#!/bin/bash
for n in `ls /var/www/html/mrtg/*.cfg`
do
    mrtg $n
done
exit 0
which cron executed every 5 minutes,
but mrtg started to step itself on tail when number of hosts increased.
I tried forking mrtg process putting all cfgs in one cfg but that didn't
solve the problem.
The idea to execute each cfg at a time was not to create additional  snmp
traffic.

What bothered me was that cpu load was always 90-98%. Now the number of
hosts is around 1000 and the number of mrtg processes is increasing, which
makes server where mrtg is installed, very hard to log in, also I have to
wait minutes until the page with graphs is displayed (used 14all.cgi). I did
some tweaking and tunning reorganizing and grouping of mrtg procesess but
that is a temporary solution.
I am getting all the time HIGH CPU LOAD.
Machine is P4 with CPU  2.04 Ghz cache 1024KB  and 512MB RAM module.
Is there another way for  graphing traffic using SNMP?

Thank you in advance,
Valton



--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://lists.ee.ethz.ch/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the mrtg mailing list