[mrtg] Re: How to sum up In & Out
Ripley, Scott
Scott.Ripley at mail.house.gov
Wed Mar 28 14:32:20 MEST 2001
The simplest answer may also be the best answer...
I wanted to graph certain DNS statistics on our servers, so I wrote a small
script to do the math I wanted and simply passed those statistics to MRTG
manually. It was tricky to learn but now I know how to graph anything I want
in MRTG, not just SNMP devices.
Scott Ripley
DNS Administrator, House Information Resources
202.226.2833 - mailto:scott.ripley at mail.house.gov
-----Original Message-----
From: David Sawyer [mailto:david.sawyer at uk.mckhboc.com]
Sent: Wednesday, March 28, 2001 5:02 AM
To: 'Vargas Miguel'; 'Paul C. Williamson';
Shoaib.Muhammad at fronteracorp.com; mrtg at list.ee.ethz.ch
Subject: [mrtg] Re: How to sum up In & Out
Importance: Low
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
> -----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
--
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