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

David Sawyer david.sawyer at uk.mckhboc.com
Wed Mar 28 12:02:08 MEST 2001

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

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

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.


> -----Original Message-----
> From:	Vargas Miguel [SMTP:mvargas at tnsi.com]
> Sent:	Tuesday, March 27, 2001 9:45 PM
> To:	'Paul C. Williamson'; Shoaib.Muhammad at fronteracorp.com;
> mrtg at list.ee.ethz.ch
> Subject:	[mrtg] Re: How to sum up In & Out
> That's almost correct.  mrtg in it's native form has a third line called
> dorelpercent, it shows in/out.  You could try to modify the formula in
> rateup.c (around line 525) to make it (outr+inr)/maxvalue*100, and then
> recompile.  I tried to do this but I couldn't figure out what variable had
> the maxvalue. 
The information contained in this e-mail is confidential and is intended
only for the named recipient(s). If you are not the intended recipient you
must not copy, distribute, or take any action or reliance on it.
If you have received this e-mail in error, please notify the sender.
Any unauthorised disclosure of the information contained in this e-mail
is strictly prohibited.

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