[mrtg] Re: Making Y-axis change

Adam Waltman AWaltman at docHarbor.net
Thu Aug 2 18:06:25 MEST 2001


Well the thing that deterred me from getting what I needed was having the
Options[_]: variable set to growright, bits, nopercent.  I now only have
growright and nopercent.

-----Original Message-----
From: Paul C. Williamson [mailto:pwilliamson at mandtbank.com]
Sent: Thursday, August 02, 2001 11:42 AM
To: AWaltman at docHarbor.net; mrtg at list.ee.ethz.ch
Subject: [mrtg] Re: Making Y-axis change


Do tell...what were the changes made that made it work ok?

>>> Adam Waltman <AWaltman at docHarbor.net> 08/02/01 11:00AM >>>

Everything is AOK.  I tried a number of different combinations and it's
working great.  Thanks for all the help!

Adam

-----Original Message-----
From: Paul C. Williamson [mailto:pwilliamson at mandtbank.com] 
Sent: Thursday, August 02, 2001 10:55 AM
To: AWaltman at docHarbor.net; mrtg at list.ee.ethz.ch 
Subject: [mrtg] Re: Making Y-axis change


Take a little step first - what happens when you take your working 
script and make it Unscaled?

>>> Adam Waltman <AWaltman at docHarbor.net> 08/02/01 10:18AM >>>

I still can't get what I need for this customer.  I want the y-axis to
display 0,10,20,30,etc... to show a bandwidth percentage rather than a bps
or bytes/sec number.  All the other suggestions have been helpful but I am
not quite there.  Any more help would be great.

Thanks,
Adam

-----Original Message-----
From: Daniel J McDonald [mailto:dmcdonald at digicontech.com] 
Sent: Thursday, August 02, 2001 9:23 AM
To: 'Adam Waltman'
Subject: RE: [mrtg] Re: Making Y-axis change


you can fiddle with
ylengend[pershing_10.60.13.2]: percent utilization
legend1[pershing_10.60.13.2]: Input Traffic Rate
legend2[pershing_10.60.13.2]: Output Traffic Rate


The manual describes this in detail (search for ylegend...)
http://people.ee.ethz.ch/~oetiker/webtools/mrtg/reference.html 

-----Original Message-----
From: mrtg-bounce at list.ee.ethz.ch [mailto:mrtg-bounce at list.ee.ethz.ch]On 
Behalf Of Adam Waltman
Sent: Thursday, August 02, 2001 8:03 AM
To: MRTG (E-mail)
Subject: [mrtg] Re: Making Y-axis change



When I did all of the things you suggested, I get bytes per second on my
y-axis not a percentage.  Here's my config:

Target[pershing_10.60.13.2]: /10.60.13.2:community at router * 100 / 562500
Options[pershing_10.60.13.2]: nopercent
SetEnv[pershing_10.60.13.2]: MRTG_INT_IP="10.60.13.2"
MRTG_INT_DESCR="ATM2/IMA0.55-aal5 layer"
Directory[pershing_10.60.13.2]: pershing
#MaxBytes[pershing_10.60.13.2]: 562500
MaxBytes[pershing_10.60.13.2]: 100
Shortlegend[pershing_10.60.13.2]: %

What next?

-----Original Message-----
From: Daniel J McDonald [mailto:dmcdonald at digicontech.com] 
Sent: Thursday, August 02, 2001 8:32 AM
To: 'Adam Waltman'
Subject: RE: [mrtg] Making Y-axis change


>I have a couple of questions.  In the target[percent] line, is the target
>the router name or IP?

IP is fine, router name is fine if you have it all in DNS.

>Is the percent in brackets actually the word percent or the number?
Whatever is in brackets is a "target name".  It can be anything you want, as
long as it can be turned into a valid filename on your system.  I suggested
a different target name so that you would not try to just modify an existing
config, which would give you historical data that didn't match the existing
scale.

>Finally, what is the 1:

that is the ifIndex value of the interface on the router in question.  You
can, of course, use the /ip.address hack, the \Long name hack, the #ifName
hack, or any other of the shortcuts for finding ifIndex.  See the mrtg
config page (you might want to read the section on target, it is fascinating
reading.  Then, for the truly brave, open up the source of MRTG_lib.pm and
see if you can make sense of the regex that parses the target line - truly
it is a thing of beauty, if ever I can figure it out...)


>and the * in the router at community statement?
* means "multiply".  So, you take the target value, multiply it by 100,
divide it by the old maxbytes value, and you are left with an integer
between 0 and 100 (well, a float n the case of RRDtool, and integer in the
case of rateup).

-----Original Message-----
From: Daniel J McDonald [mailto:dmcdonald at digicontech.com] 
Sent: Wednesday, August 01, 2001 3:05 PM
To: 'Adam Waltman'; 'MRTG (E-mail)'
Subject: RE: [mrtg] Making Y-axis change


>I would like my y-axis on my graphs to give me the usage percent rather
than
>the bits per second.  how do i do this?

The first question is always - why bother?  The percentage is displayed in
the legend.  If you want it to represent graphically the percentage used,
you can set the unscaled[]:dwmy flag and make it display in proportion to
the total bandwidth while still preserving lots of additional useful
information.

But, if you are convinced that throwing away information is good and that
your customers won't want the actual speed, then you should do something on
the order of:

# If a 56K line, then maxbytes was 7000...
target[percent]: 1:public at 172.16.0.1 * 100 / 7000
options[percent]: nopercent
maxbytes[percent]:100
shortlegend[percent]: %

Daniel J McDonald, CCIE 2495, CNX
Principal Network Specialist
Digicon Technologies
http://www.digicontech.com 

Digicon, a Cisco Partner, Silver Certified.

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