I have just completed the install of my new Mrtg server on which I am
running the following
Server IP is 172.31.16.237 : Note This is a VMware Server with two
CPU's
Linux mrtg2.beverlycorp.com 2.6.25-14.fc9.x86_64 #1 SMP Thu May 1
06:06:21 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
MRTG.x86_64 Version 2.16.1
RRDTOOL.x86_64 1.3.0
RRDTOOL-PERL.x86_64 1.3.0
Routers2.cgi Version 2.18beta5
I am monitoring about 560 sites and have notices that the CPU spikes to
99% every 5 minutes and know that this is when my script is running.
What I would like to know is if there was someway to throttle these
processes to lower the cpu usage. Here is a copy of the script that
runs via a cron job every 5 minutes
#############
mrtg_run
############
#! /bin/bash
for fn in /etc/mrtg/*.cfg; do
env LANG=C /usr/bin/mrtg "$fn" &
done
####################################
I am looking for ways to improve performance have some cpu left over
for other task.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of McDonald, Dan
Sent: Thursday, August 07, 2008 10:10 AM
To: [email protected]
Subject: Re: [mrtg] (no subject)
On Thu, 2008-08-07 at 10:57 -0400, Rodge Stumbaugh wrote:
> I walked into an already setup mftg environment. I notice that this
> setup doesn't use .cfg files, but uses .inc files for configuration.
> This setup also has monitoring for not just routers and interfaces,
> but for switches, their interfaces and the servers(windows) connected
> to those interfaces. In looking at the latest documentation, it still
> lists .cfg files. My question is how are the .inc files setup?
Precisely the same as .cfg files. In fact, you could call them .foo, or
.mrtg, or .LifeIsGrandInGrandSaline, or not even have an extension.
Perl doesn't care - it's just text.
--
Daniel J McDonald, CCIE #2495, CISSP #78281, CNX Austin Energy
http://www.austinenergy.com
Please consider the environment before printing this e-mail.
CONFIDENTIAL NOTICE:
This e-mail message and any attachment(s) (collectively, this 'Email') are
intended
only for the confidential use of the recipient(s) named above. If the reader of
this
message is not the intended recipient named above or an agent responsible for
delivering it to the intended recipient named above, you have received this
Email in error.
Please notify the sender immediately and permanently delete this Email and any
copies thereof.
_______________________________________________
mrtg mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg