[mrtg] Re: How to alter the bandwidth scaling on graphs?

PAUL WILLIAMSON pwilliamson at mandtbank.com
Mon Jun 17 21:20:33 MEST 2002


Graphs will only update when their supplying data is updated - 
every 30 minutes for weekly, every 2 hours for monthly.  If you 
want them updated immediately to see the effects, force a 
refresh on your browser or delete the graphs from the webserver.

The difference in the graphs comes from averaging.  This is the reason 
you may see a 2 mb spike on the daily, but by the time you get down 
to monthly or yearly, it's only a little more than the average amount.  

Paul

>>> "Rupert Heesom" <raheesom at awr.org> 06/17/02 02:30PM >>>
Thanks for your email, Garry.

I've taken your advice, but things are not quite working correctly yet!

Below is most of my CFG file --

As you can see, I've got the MaxBytes & AbsMax converted to Bits / sec
numbers (took me a while to realise that!).

I've also been playing with the global defaults, trying to get some,
well, global defaults!

What I've got so far, is that the Daily graph (1st graph) displays fine.
Correct orientation (growright), correct scale (bits/s), correct graph Y
axis labelling (bits/s).

The Weekly & Months graphs do their own thing though!  They display in
Bytes (not bits), both is figures & graph labelling.

How come there's differences in the graphs when each interface has the
same parameters, and these cover all the different time period graphs?

Is it something to do with the SNMP data available?  Ie, the longer time
frame graphs not displaying correctly because they haven't got anything
to display and are therefore not reading the CFG file?

I'm mystified!!

---->>>  I've just fiddling a little more (with global defaults), and
suddenly the weekly graph is displaying correctly (whichever way I set
the CFG file defaults) so it looks like it's something to do with the
graphs reading the CFG file or not!

I find that strange!!
---->>>



========================================================================
====
#  or for NT
WorkDir: d:\Inetpub\wwwroot\mrtg

### Run MRTG continuously ###

RunAsDaemon: yes

### Global Defaults

#  to get bits instead of bytes and graphs growing to the right
Options[_]: growright, bits
# Options[193.133.125.222_1]: growright, bits
# Options[193.133.125.222_2]: growright, bits



######################################################################
# System: advaworl01-gw.awr.org
# Description: Cisco Internetwork Operating System Software
#          IOS (tm) 2500 Software (C2500-I-L), Version 11.3(3), RELEASE
SOFTWARE (fc1)
#          Copyright (c) 1986-1998 by cisco Systems, Inc.
#          Compiled Mon 20-Apr-98 18:23 by phanguye
# Contact:
# Location:
######################################################################


### Interface 1 >> Descr: 'Ethernet0' | Name: 'Et0' | Ip:
'193.133.125.222' | Eth: '00-30-94-e6-25-d3' ###

Target[193.133.125.222_1]: 1:AWEN-UK at 193.133.125.222: 
SetEnv[193.133.125.222_1]: MRTG_INT_IP="193.133.125.222"
MRTG_INT_DESCR="Ethernet0"
MaxBytes[193.133.125.222_1]: 64000
AbsMax[193.133.125.222_1]: 64000
Unscaled[193.133.125.222_1]: dwm
Suppress[193.133.125.222_1]: y
Title[193.133.125.222_1]: Traffic Analysis for 1 --
advaworl01-gw.awr.org
PageTop[193.133.125.222_1]: <H1>Traffic Analysis for 1 --
advaworl01-gw.awr.org</H1>
 <TABLE>
   <TR><TD>System:</TD>     <TD>advaworl01-gw.awr.org in </TD></TR>
   <TR><TD>Maintainer:</TD> <TD></TD></TR>
   <TR><TD>Description:</TD><TD>Ethernet0  </TD></TR>
   <TR><TD>ifType:</TD>     <TD>ethernetCsmacd (6)</TD></TR>
   <TR><TD>ifName:</TD>     <TD>Et0</TD></TR>
   <TR><TD>Max Speed:</TD>  <TD>512 kBits/s</TD></TR>
   <TR><TD>Ip:</TD>         <TD>193.133.125.222
(advaworl01-gw.pipex.net)</TD></TR>
 </TABLE>


### Interface 2 >> Descr: 'Serial0' | Name: 'Se0' | Ip: '' | Eth: '' ###

Target[193.133.125.222_2]: 2:AWEN-UK at 193.133.125.222: 
SetEnv[193.133.125.222_2]: MRTG_INT_IP="" MRTG_INT_DESCR="Serial0"
MaxBytes[193.133.125.222_2]: 64000
AbsMax[193.133.125.222_2]: 64000
Unscaled[193.133.125.222_2]: dwm
Suppress[193.133.125.222_2]: y
Title[193.133.125.222_2]: Traffic Analysis for 2 --
advaworl01-gw.awr.org
PageTop[193.133.125.222_2]: <H1>Traffic Analysis for 2 --
advaworl01-gw.awr.org</H1>
 <TABLE>
   <TR><TD>System:</TD>     <TD>advaworl01-gw.awr.org in </TD></TR>
   <TR><TD>Maintainer:</TD> <TD></TD></TR>
   <TR><TD>Description:</TD><TD>Serial0  </TD></TR>
   <TR><TD>ifType:</TD>     <TD>ppp (23)</TD></TR>
   <TR><TD>ifName:</TD>     <TD>Se0</TD></TR>
   <TR><TD>Max Speed:</TD>  <TD>512 kBits/s</TD></TR>
 </TABLE>

========================================================================
=============


Regs
Rupert Heesom
Asst Distribution Engineer
Adventist World Radio


-----Original Message-----
From: Garry Cook [mailto:Garry.Cook at mactec.com] 
Sent: 17 June 2002 14:56
To: Rupert Heesom
Subject: RE: [mrtg] How to alter the bandwidth scaling on graphs?


Try this:

### Interface 1 >> Descr: 'Ethernet0' | Name: 'Et0' | Ip:
'193.133.125.222' | Eth: '00-30-94-e6-25-d3' ###
Target[193.133.125.222_1]: 1:AWEN-UK at 193.133.125.222: 
SetEnv[193.133.125.222_1]: MRTG_INT_IP="193.133.125.222"
MaxBytes[193.133.125.222_1]: 64000
AbsMax[193.133.125.222_1]: 64000
Unscaled[193.133.125.222_1]: dwmy
Title[193.133.125.222_1]: Traffic Analysis for 1 --
advaworl01-gw.awr.org
PageTop[193.133.125.222_1]: <H1>Traffic Analysis for 1 --
advaworl01-gw.awr.org</H1>

This should set the max Bandwidth to 512k, draw a red line at said bw,
and ensure that none of your graphs scale.

Garry W. Cook, CCNA
Network Infrastructure Manager
MACTEC, Inc. - http://www.mactec.com/ 
303.308.6228 (Office) - 303.881.5157 (Mobile)


> The bandwidth scaling on my graphs seems to be set dynamically.
>
> I'm hoping to set the bandwidth to 100% of 512k (our
> dedicated bandwidth
> size).
>



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