Multi Router Traffic Grapher

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 21:19, 26 August 2006 (edit)
Tmitchell (Talk | contribs)
(SNMPOIDs)
← Previous diff
Revision as of 03:04, 29 August 2006 (edit) (undo)
AlReece45 (Talk | contribs)

Next diff →
Line 4: Line 4:
=Installation= =Installation=
-==Router== 
-From the Web Interface<br> 
--Click on the Administration Tab<br> 
--Click on the Services Sub-tab<br> 
--Mark "Enable" next to SNMP<br> 
--Click Submit<br> 
--Click Continue<br> 
--Fill in the information in the SNMP section that opened up.<br> 
-(Location, Contact, Name, RO Community, RW Community)<br> 
-==Desktop==+== Router ==
-There are a number of installation guides on the [http://people.ee.ethz.ch/~oetiker/webtools/mrtg/ MRTG website].<br>+ 
-In the guide, substitute:<br>+Using the [[Web_Interface|Web Interface]:
-'''public''' for the ''RO Community'' you filled in earlier<br>+ 
-'''10.10.10.1''' with the Local IP address of your router.<br>+# Goto the "Administration" tab and the "Services" sub-tab
 +# Enable "SNMP" and if new options don't appear, Apply Changes.
 +# Fill in information in the SNMP section. (Location, Contact, Name, RO Community, RW Community)
 + 
 +== Desktop ==
 + 
 +There are a number of installation guides on the [http://people.ee.ethz.ch/~oetiker/webtools/mrtg/ MRTG website].
 + 
 +In the guide, substitute:
 + 
 +'''public''' for the ''RO Community'' you filled in earlier
 + 
 +'''10.10.10.1''' with the Local IP address of your router.
 + 
 +=== Windows ===
-===Windows=== 
You should have Windows IIS installed, or some other web server you're familiar with. You should have Windows IIS installed, or some other web server you're familiar with.
-Substitute '''D:\InetPub\wwwroot\''' for the wwwroot of your IIS installation. 
-Follow the guide at: http://people.ee.ethz.ch/~oetiker/webtools/mrtg/doc/mrtg-nt-guide.en.html+'''NOTE:''' Substitute '''D:\InetPub\wwwroot\''' for the wwwroot of your IIS installation.
-Remove the line: WorkDir: c:\www\mrtg from the bottom of +# Follow the [http://people.ee.ethz.ch/~oetiker/webtools/mrtg/doc/mrtg-nt-guide.en.html MRTG guide]
-Make the folder '''D:\InetPub\wwwroot\'''MRTG+# Remove the line: WorkDir: c:\www\mrtg from the bottom of
-Create a new virtual folder in IIS and point it to '''D:\InetPub\wwwroot\'''MRTG+# Make the folder '''D:\InetPub\wwwroot\'''MRTG
-Browse to http://127.0.0.1/MRTG to see your traffic logs.+# Create a new virtual folder in IIS and point it to '''D:\InetPub\wwwroot\'''MRTG
 +# Browse to http://127.0.0.1/MRTG to see your traffic logs.
Alternately for a quick look, use STG which will let you monitor 2 OIDs at a time. Alternately for a quick look, use STG which will let you monitor 2 OIDs at a time.
Line 35: Line 39:
Use: Use:
-* 1.3.6.1.2.1.2.2.1.10.8 for br0 interface (intern LAN port) for download (green) (1.3.6.1.2.1.2.2.1.16.8 upload(blue))+ 
-* 1.3.6.1.2.1.2.2.1.10.6 for vlan1 interface (extern WAN port) for download (green) (1.3.6.1.2.1.2.2.1.16.6 upload(blue))+ * 1.3.6.1.2.1.2.2.1.10.8 for br0 interface (intern LAN port) for download (green) (1.3.6.1.2.1.2.2.1.16.8 upload(blue))
-* 1.3.6.1.2.1.2.2.1.10.4 for eth1 interface (WLAN) for download (green) (1.3.6.1.2.1.2.2.1.16.4 upload(blue))+ * 1.3.6.1.2.1.2.2.1.10.6 for vlan1 interface (extern WAN port) for download (green) (1.3.6.1.2.1.2.2.1.16.6 upload(blue))
 + * 1.3.6.1.2.1.2.2.1.10.4 for eth1 interface (WLAN) for download (green) (1.3.6.1.2.1.2.2.1.16.4 upload(blue))
===Unix=== ===Unix===
 +
Follow the guide at: http://people.ee.ethz.ch/~oetiker/webtools/mrtg/doc/mrtg-unix-guide.en.html Follow the guide at: http://people.ee.ethz.ch/~oetiker/webtools/mrtg/doc/mrtg-unix-guide.en.html

Revision as of 03:04, 29 August 2006

Contents

Introduction

From the MRTG website:
The Multi Router Traffic Grapher (MRTG) is a tool to monitor the traffic load on network-links. MRTG generates HTML pages containing graphical images which provide a LIVE visual representation of this traffic. Check http://www.ee.ethz.ch/stats/mrtg/ for an example. MRTG is based on Perl and C and works under UNIX and Windows NT. MRTG is being successfully used on many sites around the net.

Installation

Router

Using the [[Web_Interface|Web Interface]:

  1. Goto the "Administration" tab and the "Services" sub-tab
  2. Enable "SNMP" and if new options don't appear, Apply Changes.
  3. Fill in information in the SNMP section. (Location, Contact, Name, RO Community, RW Community)

Desktop

There are a number of installation guides on the MRTG website.

In the guide, substitute:

public for the RO Community you filled in earlier

10.10.10.1 with the Local IP address of your router.

Windows

You should have Windows IIS installed, or some other web server you're familiar with.

NOTE: Substitute D:\InetPub\wwwroot\ for the wwwroot of your IIS installation.

  1. Follow the MRTG guide
  2. Remove the line: WorkDir: c:\www\mrtg from the bottom of
  3. Make the folder D:\InetPub\wwwroot\MRTG
  4. Create a new virtual folder in IIS and point it to D:\InetPub\wwwroot\MRTG
  5. Browse to http://127.0.0.1/MRTG to see your traffic logs.

Alternately for a quick look, use STG which will let you monitor 2 OIDs at a time. http://leonidvm.chat.ru/

Use:

  * 1.3.6.1.2.1.2.2.1.10.8 for br0 interface (intern LAN port) for download (green) (1.3.6.1.2.1.2.2.1.16.8 upload(blue))
  * 1.3.6.1.2.1.2.2.1.10.6 for vlan1 interface (extern WAN port) for download (green) (1.3.6.1.2.1.2.2.1.16.6 upload(blue))
  * 1.3.6.1.2.1.2.2.1.10.4 for eth1 interface (WLAN) for download (green) (1.3.6.1.2.1.2.2.1.16.4 upload(blue))

Unix

Follow the guide at: http://people.ee.ethz.ch/~oetiker/webtools/mrtg/doc/mrtg-unix-guide.en.html

The OID's which MRTG will pick up in a default configuration are as follows:

  • 5 (eth0) - all routed wired traffic, WAN + LAN
  • 6 (eth1) - all routed wireless traffic
  • 7 (vlan0) - all routed LAN traffic
  • 8 (vlan1) - WAN traffic
  • 9 (br0) - vlan0-eth1 bridge traffic

Currently, there is no way to monitor switched traffic.

SNMPOIDs

If you want to monitor something other than bytes in and out, you must also know the SNMPOID of what you want to monitor.
Here is a listing of SNMPOIDs for the DD-WRT firmware.
not completed

Some SNMP OIDs can be found in this forum thread: http://forum.bsr-clan.de/ftopic1245.html

Please copy the important OIDs here!!!


For CPU load dd-wrt snmpd provides two sets of MIBs:

1.3.6.1.4.1.2021.10.1.3.1 = 01 min avg, Value is between 0.00 and 1.00.
1.3.6.1.4.1.2021.10.1.3.2 = 05 min avg, Value is between 0.00 and 1.00.
1.3.6.1.4.1.2021.10.1.3.3 = 15 min avg, Value is between 0.00 and 1.00.

The values above need to be multiplied by 100 since mrtg does integers.

Example:

Target[10.0.0.1.cpu]: 1.3.6.1.4.1.2021.10.1.3.1&1.3.6.1.4.1.2021.10.1.3.2:public@10.0.0.1: *100


1.3.6.1.4.1.2021.10.1.5.1 = 01 min avg, 1 means 0.01 and 150 means 1.5
1.3.6.1.4.1.2021.10.1.5.2 = 05 min avg, 1 means 0.01 and 150 means 1.5
1.3.6.1.4.1.2021.10.1.5.3 = 15 min avg, 1 means 0.01 and 150 means 1.5


For UP and DOWN traffic on the WAN-side:

1.3.6.1.2.1.2.2.1.10.8 = Downrate
1.3.6.1.2.1.2.2.1.16.8 = Uprate


For memory usage:

1.3.6.1.2.1.25.2.3.1.5.101 = Total available
1.3.6.1.2.1.25.2.3.1.6.101 = Used

External Resources

MRTG website