RouterGraph: A WAN traffic grapher

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
uziq
DD-WRT User


Joined: 02 Jan 2008
Posts: 65

PostPosted: Wed Apr 10, 2019 4:31    Post subject: RouterGraph: A WAN traffic grapher Reply with quote
This is a program for Windows that displays SNMP data. It's main purpose is graphing WAN traffic, and it also shows how much CPU and RAM is being used on the router.

You'll need to enable SNMP on the Services tab in DD-WRT. You can leave the default values alone. The only setting RouterGraph cares about is RO Community. For best results, use build 39137 or older because SNMP only updates every three seconds in newer builds.

If RouterGraph doesn't appear to be doing anything, or if you see red lines, you might need to change one or more settings on the Options window. OIDs can vary depending on which router and DD-WRT build you're using. Paessler SNMP Tester and SolarWinds SNMP Walk are two useful programs for figuring out which OIDs to use.

To figure out which interface the WAN port is on, go to the Setup -> VLANs or Status -> Bandwidth page in DD-WRT. If your WAN is on VLAN2 then that's what you should look for when using the above programs.

The screenshots show a large file that was downloaded. It basically maxed out the internet connection (120Mbps). After the file completed, the first screenshot makes it seem that there was no WAN traffic for awhile, but the second screenshot shows low level traffic.

There's three separate graphs:
1. Top shows 0 to 120mbps
2. Middle shows 0 to 1mpbs
3. Bottom shows 0 to 4kbps

What it looks like in fullscreen:


Short clip showing transition from one graph to three graphs. A speed test was done at 10:07.

Inspired by the Super simple SNMP traffic graph - for dummies!!! thread.



Screenshots.png
 Description:
 Filesize:  34.57 KB
 Viewed:  3771 Time(s)

Screenshots.png



Options.png
 Description:
 Filesize:  28.37 KB
 Viewed:  3771 Time(s)

Options.png



RouterGraph.zip
 Description:
RouterGraph 2.0

Download
 Filename:  RouterGraph.zip
 Filesize:  67.99 KB
 Downloaded:  195 Time(s)



Last edited by uziq on Thu Apr 18, 2019 1:42; edited 3 times in total
Sponsor
uziq
DD-WRT User


Joined: 02 Jan 2008
Posts: 65

PostPosted: Wed Apr 10, 2019 7:55    Post subject: Reply with quote
SNMP can be complicated. But you don't really need to know much about it. All you need is your router's IP (usually 192.168.1.1), the SNMP community name (usually "public") and a few OIDs.
uziq
DD-WRT User


Joined: 02 Jan 2008
Posts: 65

PostPosted: Wed Apr 10, 2019 20:24    Post subject: Reply with quote
Here's how you can find the WAN in/out counters.


SNMP Tester.png
 Description:
 Filesize:  282.7 KB
 Viewed:  3705 Time(s)

SNMP Tester.png


uziq
DD-WRT User


Joined: 02 Jan 2008
Posts: 65

PostPosted: Wed Apr 10, 2019 20:41    Post subject: Reply with quote
Searching SNMPWalk's results for "Memory" and "Load-1" will find the OIDs for RAM and CPU usage.


SNMPWalk.png
 Description:
 Filesize:  75.67 KB
 Viewed:  3698 Time(s)

SNMPWalk.png


uziq
DD-WRT User


Joined: 02 Jan 2008
Posts: 65

PostPosted: Mon Apr 29, 2019 5:19    Post subject: Reply with quote
Have any of the few actually used this? It'd be nice to get some feedback.
uziq
DD-WRT User


Joined: 02 Jan 2008
Posts: 65

PostPosted: Fri Nov 08, 2019 6:36    Post subject: Reply with quote
Bump.
autobot
DD-WRT Guru


Joined: 07 May 2009
Posts: 1596

PostPosted: Fri Jan 03, 2020 11:43    Post subject: Reply with quote
It looks like a great tool, I don't run Windows so I can't use it. I would love to have this as an Android app.

Nice work, thanks for sharing.
Nickof408
DD-WRT Novice


Joined: 27 Jan 2019
Posts: 11

PostPosted: Mon Feb 24, 2020 1:58    Post subject: Reply with quote
Do you have a way to get this working properly with current firmware? It seems like something is broken in DD-WRT's snmpd for almost the last year now. My graphs just show spikes. It might be accurate if it ignores the 0 values, but it seems like an issue with the firmware.
uziq
DD-WRT User


Joined: 02 Jan 2008
Posts: 65

PostPosted: Thu Jul 08, 2021 3:43    Post subject: Reply with quote
Nickof408 wrote:
Do you have a way to get this working properly with current firmware? It seems like something is broken in DD-WRT's snmpd for almost the last year now. My graphs just show spikes. It might be accurate if it ignores the 0 values, but it seems like an issue with the firmware.


There's been trouble with SNMP in some of the builds from the past two years. It might have been fixed by now but I've just been using v3.0-r38570 std (02/04/19) since it still works.

https://svn.dd-wrt.com/ticket/6613
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum