What's new

RT-N66U Monitoring CPU load and bandwidth (SNMP)

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

muumi

New Around Here
Hello world,

I was running some performance tests from a laptop against a server over RT-N66U and started getting some connection errors after pushing a bit higher load over. So I though I should monitor the router resource load to see if it has some impact. I went with SNMP for that. However, I am no SNMP expert so I am a bit confused with this. Hope someone can help a bit here. I am running Merlin 378.55 firmware.

First up, I wanted to see what are my interfaces to figure out which one I should monitor for bandwidth:

snmpwalk -v2c -c public 192.168.2.1 .1.3.6.1.2.1.2.2.1.2
IF-MIB::ifDescr.1 = STRING: lo
IF-MIB::ifDescr.2 = STRING: eth0
IF-MIB::ifDescr.3 = STRING: eth1
IF-MIB::ifDescr.4 = STRING: eth2
IF-MIB::ifDescr.5 = STRING: vlan1
IF-MIB::ifDescr.6 = STRING: vlan2
IF-MIB::ifDescr.7 = STRING: br0

Can someone tell me what are these mapped to? Looking at the in/out for these:

snmpwalk -v2c -c public 192.168.2.1 1.3.6.1.2.1.31.1.1.1.10
IF-MIB::ifHCOutOctets.1 = Counter64: 74101636
IF-MIB::ifHCOutOctets.2 = Counter64: 8574112783
IF-MIB::ifHCOutOctets.3 = Counter64: 58633379885
IF-MIB::ifHCOutOctets.4 = Counter64: 58517412727
IF-MIB::ifHCOutOctets.5 = Counter64: 216181767
IF-MIB::ifHCOutOctets.6 = Counter64: 0
IF-MIB::ifHCOutOctets.7 = Counter64: 115233578617

snmpwalk -v2c -c public 192.168.2.1 1.3.6.1.2.1.31.1.1.1.6
IF-MIB::ifHCInOctets.1 = Counter64: 74104156
IF-MIB::ifHCInOctets.2 = Counter64: 115684829866
IF-MIB::ifHCInOctets.3 = Counter64: 6381298900
IF-MIB::ifHCInOctets.4 = Counter64: 2827755940
IF-MIB::ifHCInOctets.5 = Counter64: 46837000
IF-MIB::ifHCInOctets.6 = Counter64: 0
IF-MIB::ifHCInOctets.7 = Counter64: 7340366520

So I guess eth0 is my WAN (internet)? eth1 and eth2 I guess could be two of the four ports in the back. I am a bit lost, what are lo, vlan1, vlan2, and br0? Is br0 my wireless? If I have two computers on the same router over wireless sending data to each other, do they both show in br0 as in/out?

For the CPU load I tried a bunch of OIDs:

CPU system load: 1.3.6.1.4.1.2021.11.10.0
CPU user load: 1.3.6.1.4.1.2021.11.9.0
CPU idle: 1.3.6.1.4.1.2021.11.11.0

However, the only one of these giving some semi-reasonable values is the idle OID. The system/user are close to 0 most of the time, while the idle goes down.

I then tried another one I found around the internet:

Processor load: 1.3.6.1.2.1.25.3.3.1.2.196608

This one seems to work slightly better as it seems to be the opposite of the idle measurement. The last digit of this OID is what I got from snmpwalking the OID "1.3.6.1.2.1.25.3.3.1.2" (no idea where the router picks 196608 from..). As mentioned, this gives more reasonable values. However, I was hoping these would give me finer granularity information than the 1/5 min counters. But it does not seem to give very direct values (percentages). Comparing to the graph shown in the ASUS admin panel, the admin panel graph has much finer granularity percentages shown (e.g. %/s). Is there some way (OID?) to query this load percentage (per core if one has more..) at the same level as shown in the admin panel?

Finally, any other ideas on what else would be relevant to monitor? Is there some OID for dropped packets? Anything else?

Cheers & thanks...
 

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top