[mrtg] mrtg showing very high cpu usage cause of other app running
Ross Tsolakidis
rtsolakidis at powerserve.com.au
Fri Sep 5 04:28:52 MEST 2003
Hi all,
I'm running awstats (web statistics app) every 5 mins using crontab, its
doing about 10 sites. During the query it pretty much hits the cpu to
about 90%, which is ok as it only lasts about 20 secs.
The problem is I also run MRTG every 5 mins, and MRTG is graphing every
5 mins, so my box looks like its always at 90% cpu :(
A couple of questions, some a little OT.
1) is there a way to run my crontab more effectively ?
==
my crontab currently:
0-55/5 * * * * root /home/rosst/mrtg/scripts/run-mrtg.sh >>
/var/log/mrtg/crontab
0-55/5 * * * * root /usr/lib/cgi-bin/awstats.pl -config=bnbc -update >>
/var/log/bnbc/cron
0-55/5 * * * * root /usr/lib/cgi-bin/awstats.pl -config=ba -update >>
/var/log/blazer/cron
0-55/5 * * * * root /usr/lib/cgi-bin/awstats.pl -config=baftp -update >>
/var/log/blazing/cron
0-55/5 * * * * root /usr/lib/cgi-bin/awstats.pl -config=tards -update >>
/var/log/liquid/cron
0-55/5 * * * * root /usr/lib/cgi-bin/awstats.pl -config=cpnh -update >>
/var/log/cpnh/cron
0-55/5 * * * * root /usr/lib/cgi-bin/awstats.pl -config=yfc -update >>
/var/log/yfc/cron
0-55/5 * * * * root /usr/lib/cgi-bin/awstats.pl -config=auslife -update
>> /var/log/auslife/cron
0-55/5 * * * * root /usr/lib/cgi-bin/awstats.pl -config=babyweb -update
>> /var/log/babyweb/cron
0-55/5 * * * * root /usr/lib/cgi-bin/awstats.pl -config=liberty -update
>> /var/log/lc/cron
0-55/5 * * * * root /usr/lib/cgi-bin/awstats.pl -config=media -update >>
/var/log/media/cron
0-55/5 * * * * root /usr/lib/cgi-bin/awstats.pl -config=ymaus -update >>
/var/log/ymaus/cron
0-55/5 * * * * root /usr/lib/cgi-bin/awstats.pl -config=aztem -update >>
/var/log/aztem/cron
0-55/5 * * * * root /usr/lib/cgi-bin/awstats.pl -config=petpost -update
>> /var/log/petpost/cron
==
2) Is there a way to get crontab to pause a job until all others are
done ?
Thanks all :)
Regards,
--
Ross
==============================
This email is from PowerServe Australia Pty Limited (A.C.N. 102 661 441)
The information contained in this email (including any attached files) may be privileged and confidential intended for the use of the person/persons named above. If you are not the intended recipient, you are advised that any use, distribution or copying of the information is strictly prohibited. If you have received this transmission in error, please notify PowerServe Australia Pty Limited immediately on 1300 790 792 or reply by email to the sender.
PowerServe Australia Pty Limited does not represent or warrant that this email or any attached files are free from computer viruses or other defects. Any attached files are provided, and may only be used, on the basis that the user assumes all responsibility for any loss, damage or consequence resulting directly or indirectly from use of the attached files. In any event, the liability of PowerServe Australia Pty Limited is limited to either the resupply of the attached files or the cost of having the attached files resupplied.
==============================
--
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