[mrtg] Re: Graph Problem

Brady, Jeff JBrady at midatlantic.aaa.com
Mon Oct 9 14:20:47 MEST 2000


You could change all of the relevant entries in AT (or cron for unix), but I
would much rather make 2 new entries than change a whole bunch, so make up 2
batch files (scripts for unix) like this:

nightchange.bat:
rename c:\mrtg-2.8.12\run\mtrg.cfg mrtg.day
rename c:\mrtg-2.8.12\run\mtrg.night mrtg.cfg

daychange.bat:
rename c:\mrtg-2.8.12\run\mrtg.cfg mrtg.night
rename c:\mrtg-2.8.12\run\mrtg.day mrtg.cfg

Schedule these in AT (cron) to run near the end of your 5 minute MRTG window
before and after your backups.

-----Original Message-----
From: mrtg-bounce at list.ee.ethz.ch [mailto:mrtg-bounce at list.ee.ethz.ch]On
Behalf Of Jim Hunt
Sent: Saturday, October 07, 2000 8:53 PM
To: 'mrtg at list.ee.ethz.ch '
Subject: [mrtg] Re: Graph Problem



Any suggestions for Automating the switching of config files?

-----Original Message-----
From: Alex van den Bogaerdt
To: jhunt at hse.k12.in.us
Cc: mrtg at list.ee.ethz.ch
Sent: 10/7/00 7:12 AM
Subject: Re: [mrtg] Graph Problem

Jim Hunt wrote:

> However, I have late night back ups which moves a lot of data across
the
> network really fast.  These night time peaks cause the daytime traffic
to
> almost not show up.  See the problem with my exchange mail server at:
> http://hse.k12.in.us/network/mrtg/172.16.0.2_2.html
> <http://hse.k12.in.us/network/mrtg/172.16.0.2_2.html> 
> 
> Would adding max bytes to the config file do the trick?  If I read it
> correctly, if used, I would get no traffic when it exceeds the max
allowed?

MaxBytes should always be present.  It does some sanity checking.
If they are missing, I get an error ...  Make sure you don't dismiss
the output of MRTG!

Apart from this, you can "abuse" this value for your benefit.  Create
an extra config file, mostly similar to the one you are using at the
day time.  The only difference is MaxBytes which is set to a very low
number.  Use this other config file for the period where your backups
are running.  During this time, the numbers below the graph will show
very strange numbers.  These will look OK again when you run MRTG with
the normal config file.

HTH
-- 
   __________________________________________________________________
 / alex at slot.hollandcasino.nl                  alex at ergens.op.het.net \
| work                                                         private |
| My employer is capable of speaking therefore I speak only for myself |
+----------------------------------------------------------------------+
| Technical questions sent directly to me will be nuked. Use the list. |

+----------------------------------------------------------------------+
| http://faq.mrtg.org/                                                 |
| http://rrdtool.eu.org  --> tutorial                                  |
+----------------------------------------------------------------------+

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

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