[mrtg] Re: graphing 2 links on the same mrtg graph. - question

Alex van den Bogaerdt alex at slot.hollandcasino.nl
Fri Apr 6 00:02:05 MEST 2001

Donald Mahler wrote:

> what I need now is to aggregate router1's traffic and show it vs router2's
> traffic.   comparing the traffic load on one vs the other.   on one graph.
> preferable only the inbound traffic, but combined would be ok.   can this
> be done? - graphing 2 links on the same mrtg graph?    I have attempted
> the following, but the numbers do not seem to add up.
> Target[traffic-balance]: 3:public at router1 & 3:public at router2

"3:public at router1" is shorthand for
" at router1"
You get both input (...1.10.3) and output (...1.16.3) doing so.

If you want to use MRTG to compare the two, you could for instance do:
" at router1 + at router2 "
where x is an interface that is known to return always 0. Most
of the times it isn't hard to find such an interface.

If you do this, you are displaying the sum of
     "input from router1" and 0     as input graph
     0 and "input from router2"     as output graph

If you really cannot find an interface that returns zero, you can
always revert to the external program interface.  Write a script
that gathers the information you want, and call it from MRTG. See
the documentation and/or the FAQ.

 / alex at slot.hollandcasino.nl                  alex at ergens.op.het.net \
| work                                                         private |
| My employer is capable of speaking therefore I speak only for myself |
| Technical questions sent directly to me will be nuked. Use the list. | 
| http://faq.mrtg.org/                                                 |
| http://rrdtool.eu.org  --> tutorial                                  |

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