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

  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:

Target[edc-admin]:
.1.3.6.1.2.1.2.1.0&.1.3.6.1.4.1.9.9.166.1.15.1.1.11.1083.1601:public at 10.10.0.20:
+
.1.3.6.1.4.1.9.9.166.1.15.1.1.11.1103.1105&.1.3.6.1.2.1.2.1.0:public at 10.10.0.20:
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
Admin</H1>
 <TABLE>
   <TR><TD>System:</TD>     <TD>EDC-PBR-CORE in EDC
MDF</TD></TR>
   <TR><TD>Maintainer:</TD> <TD></TD></TR>
  
<TR><TD>Description:</TD><TD>FastEthernet2/1</TD></TR>
   <TR><TD>ifType:</TD>     <TD>ethernetCsmacd
(6)</TD></TR>
   <TR><TD>Max Speed:</TD>  <TD>12.5
MBytes/s</TD></TR>
   <TR><TD>Ip:</TD>         <TD>10.10.0.20</TD></TR>
 </TABLE>

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.
http://advision.webevents.yahoo.com/mailbeta/features_spam.html



More information about the mrtg mailing list