We have seen the same thing but not only high CPU but also all memory including swap space was utilized. Our problem occurred after adding a swich to the network that was not sometimes reachable/unreachable.
After the new mrtg.cfg wag generated, 30 minutes later the system got very slow and all memory was consumed. We also had to kill all mrtg processes (>200) and disable crontab. After repairing the switch and generating a new mrtg.cfg everything runs fine again. Harry -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Christopher Mattogno Sent: woensdag 3 februari 2010 16:53 To: Opsview Users Subject: Re: [opsview-users] MRTG High CPU utilization? Let all the MRTG processes run all night, and the OPSView webserver was non responsive and there was over 200 MRTG threads running, I had to killall to get response back. I have since stopped the MRTG cron tasks from running. 'topher On Tue, 2010-02-02 at 14:12 -0700, Christopher Mattogno wrote: > I am seeing MRTG hogging lots of CPU and I have nothing using MRTG. I > have seen false positives on hosts/services down and when I look at CPU > usage it is over 95% and top shows almost all mrtg processes. I have > disabled the MRTG Performance graphs trying to reduce numbers and > although I no longer get alerts for false positives, I do see many mrtg > processes. Is this normal? Is there anything I can do to? The server is > a Xeon 3.20GHz (dual core), Ubuntu(hardy), 2 GB RAM, 146 hosts, 1111 > services. > > Top looks like this: > 1004 nagios 20 0 23424 20m 1620 S 7 1.0 2:24.18 mrtg > 9654 nagios 20 0 23424 20m 1620 R 7 1.0 1:30.43 mrtg > 22487 nagios 20 0 23292 20m 1620 R 7 1.0 0:18.60 mrtg > 24308 nagios 20 0 23424 20m 1620 S 7 1.0 3:46.22 mrtg > 1002 nagios 20 0 23292 20m 1620 R 7 1.0 2:39.27 mrtg > 9652 nagios 20 0 23416 20m 1620 R 7 1.0 1:24.95 mrtg > 9657 nagios 20 0 23424 20m 1620 R 7 1.0 1:24.72 mrtg > 22482 nagios 20 0 23292 20m 1620 R 7 1.0 0:20.01 mrtg > 24302 nagios 20 0 23420 20m 1620 S 7 1.0 3:57.35 mrtg > 24303 nagios 20 0 23416 20m 1620 R 7 1.0 4:02.53 mrtg > 998 nagios 20 0 23424 20m 1620 R 7 1.0 2:23.54 mrtg > 999 nagios 20 0 23420 20m 1620 R 7 1.0 2:22.53 mrtg > 9655 nagios 20 0 23292 20m 1620 R 7 1.0 1:30.38 mrtg > 22480 nagios 20 0 23424 20m 1620 R 7 1.0 0:18.62 mrtg > 22486 nagios 20 0 23292 20m 1620 R 7 1.0 0:20.03 mrtg > > Cron: (both every five minutes) > > if [ -d /var/lock/mrtg ]; then if [ -x /usr/bin/mrtg ] && > [ -r /etc/mrtg.cfg ]; then env LANG=C /usr/bin/mrtg /etc/mrtg.cfg > >> /var/log/mrtg/mrtg.log 2>&1; fi else mkdir /var/lock/mrtg; fi > > /usr/local/nagios/bin/mrtg_genstats.sh > /dev/null 2>&1 > > > Mrtg Version: 2.14.7-2ubuntu3 > > mrtg.cfg: > # Global configuration > WorkDir: /var/www/mrtg > WriteExpires: Yes > > Title[^]: Traffic Analysis for > > # 128K leased line > # ---------------- > #Title[leased]: a 128K leased line > #PageTop[leased]: <H1>Our 128K link to the outside world</H1> > #Target[leased]: 1:[email protected] > #MaxBytes[leased]: 16000 > > > _______________________________________________ > Opsview-users mailing list > [email protected] > http://lists.opsview.org/lists/listinfo/opsview-users _______________________________________________ Opsview-users mailing list [email protected] http://lists.opsview.org/lists/listinfo/opsview-users _______________________________________________ Opsview-users mailing list [email protected] http://lists.opsview.org/lists/listinfo/opsview-users
