[mrtg] use mrtg to report utilization of IP address range

Mark Williams skeezelbut at yahoo.com
Thu Feb 1 18:37:17 CET 2007

If you are using Cisco equipment, you can define a QoS
policy for the specific subnet that you wish to
monitor for traffic flow. 

For example, you can create a classed-based traffic
shaping policy that shapes the traffic from a specific
subnet to some bit rate that is faster than possible
through your device. After you apply the policy to the
interface, you will be able to see the bit-rate (the 5
minute offered rate in the output below) that matches
the class going through the interface. Here's an
example of a policy:

edc-flc-r1>sh policy int m1

  Service-policy output: EDC

    Class-map: EDCAdmin (match-all)
      19325978 packets, 4407422134 bytes
      5 minute offered rate 24000 bps, drop rate 0 bps
      Match: access-group 10
      Traffic Shaping
           Target/Average   Byte   Sustain   Excess   
Interval  Increment
             Rate           Limit  bits/int  bits/int 
(ms)      (bytes)
          5120000/2560000   16000  64000     64000    
25        16000

        Adapt  Queue     Packets   Bytes     Packets  
Bytes     Shaping
        Active Depth                         Delayed  
Delayed   Active
        -      0         19325979  112454820 750713   
944203921 no

You can then use the CISCO-CLASS-BASED-QOS-MIB to read
the 5 minute offered rates out to MRTG. Here is an
example of a target that I use:

. at
. at
MRTG_INT_DESCR="Interface 2/1"
MaxBytes[edc-admin]: 12500000
Options[edc-admin]: gauge,growright
Title[edc-admin]: Traffic Analysis for EDC Admin
PageTop[edc-admin]: <H1>Traffic Analysis for EDC
   <TR><TD>System:</TD>     <TD>EDC-PBR-CORE in EDC
   <TR><TD>Maintainer:</TD> <TD></TD></TR>
   <TR><TD>ifType:</TD>     <TD>ethernetCsmacd
   <TR><TD>Max Speed:</TD>  <TD>12.5
   <TR><TD>Ip:</TD>         <TD></TD></TR>

The OIDs you would use would necessarily be different.
It works well too.

-Mark Williams 

--- Pak Tong Poy <paktongpoy at gmail.com> wrote:

> Hi list,
> is it possible to make mrtg report the traffic of
> certain IP address range
> instead of interface utilization? If so, how can it
> be done?
> Many thanks
> > _______________________________________________
> mrtg mailing list
> mrtg at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/mrtg

Sucker-punch spam with award-winning protection. 
Try the free Yahoo! Mail Beta.

More information about the mrtg mailing list