[mrtg] Re: How to sum up In & Out

Shoaib Muhammad Shoaib.Muhammad at fronteracorp.com
Thu Mar 29 02:58:33 MEST 2001


Here it is what i m actually trying to do:
Actually i m trying to monitor the VIPs traffic on one of our F5 BigIP. Here
is the mrtg.cfg file.

The last part "192.168.0.80" is the IP address of the VIP at the external
interface of BigIP.
This Target generate a graph showing the In & Out traffic, and wanna sum
them up.

So Paul, how can I put these target entries in a OID + OID form in order to
get the desired result.

TIA,
Shoaib




Target[website.com]:
.1.3.6.1.4.1.3375.1.1.3.2.1.13.192.168.0.80.80&.1.3.6.1.4.1.3375.1.1.3.2.1.1
4.192.168.0.80.80:public at 10.50.0.6
MaxBytes[website.com]: 12500000
Title[website.com]: Traffic for website.com
PageTop[website.com]: <H1>Traffic Analysis for website.com</H1>
 <TABLE>
   <TR><TD>System:</TD>     <TD>website.com</TD></TR>
   <TR><TD>Maintainer:</TD> <TD>Hosting Team</TD></TR>
   <TR><TD>Description:</TD><TD>Traffic Analysis for website.com  </TD></TR>
 </TABLE>


-----Original Message-----
From: Paul C. Williamson [mailto:pwilliamson at mandtbank.com]
Sent: Wednesday, March 28, 2001 5:39 AM
To: Shoaib.Muhammad at fronteracorp.com; mrtg at list.ee.ethz.ch;
mvargas at tnsi.com; david.sawyer at uk.mckhboc.com
Subject: [mrtg] Re: How to sum up In & Out



Actually, I believe it's this:

Target[1]: OID1.interface&OID2.interface:community at ip + 
                OID1.interface&OID2.interface:community at ip

It doesn't matter if your graphing two values or graphing the arithmetic 
result of two values, it always has to be in the form
first-value&second-value.
If you needed to add stuff together, it could be:

first-value&second-value + third-value&fourth-value.  This adds up the 
first and third, second and fourth, and putting the 1st+3rd in the default
in or 
green value, and the 2nd+4th in the default out or blue value.
Either way, it's really a kludge to getting the value you really want.

Paul

>>> David Sawyer <david.sawyer at uk.mckhboc.com> 03/28/01 05:02AM >>>

Shoaib doesn't want to plot the percent of in to out traffic, I think he
wants to plot in plus out.

Try adding the two values together in the target.
You will have to add the expression twice (some people add a null value OID)
to satisfy the two target rule.
I've never needed to do this so I'm not too sure on the syntax, it's
either...

Target[1]: OID1.interface + OID2.interface:public at ip & 
                OID1.interface + OID2.interface:public at ip
or

Target[1]: OID1.interface:public at ip + OID2.interface:public at ip &
                OID1.interface:public at ip + OID2.interface:public at ip

But I think it's the last one.

HTH
Dave


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