What's new
  • 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!

Don't get snmp/mrtg to work on Asus RT-AC66U with WRT-Merlin

stamnesn

New Around Here
Hi...

i having trouble to get snmp/mrtg to work on my Asus RT66u router with merlin 380.70.
I had the same problems on the earlier version to.

I have enabled the snmp.
Set the SNMP access from wan to off.

SNMP Get Community - TestR
SNMP Set Community - TestRW

when i'm trying to make cfg file to mrtg i get this error. Working on my smartswitches, but not the router.

C:\mrtg-2.17.4\bin>perl cfgmaker TestR@192.168.10.1 --global "WorkDir: c:\www\mrtg" --output mrtg.cfg
--base: Get Device Info on TestR@192.168.10.1:
SNMP Error:
no response received
SNMPv1_Session (remote host: "192.168.10.1" [192.168.10.1].161)
community: "TestR"
request ID: -1995714629
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at C:/mrtg-2.17.4/bin\..\lib\mrtg2/SNMP_util.pm line 651.
SNMPWALK Problem for 1.3.6.1.2.1.1 on TestR@192.168.10.1::::::v4only
at cfgmaker line 951.
WARNING: Skipping TestR@192.168.10.1: as no info could be retrieved

Use of uninitialized value $comment_sysdescr in substitution (s///) at cfgmaker line 379.
Use of uninitialized value $sysname in concatenation (.) or string at cfgmaker line 412.
Use of uninitialized value $comment_sysdescr in concatenation (.) or string at cfgmaker line 412.
Use of uninitialized value $syscontact in concatenation (.) or string at cfgmaker line 412.
Use of uninitialized value $syslocation in concatenation (.) or string at cfgmaker line 412.
--base: Writing mrtg.cfg
 
1) Go To Administration and click on SNMP.
2) Enable SNMP, enter a system name, system location, SNMP Get Community (just any text, this acts like a password).
3) Click on Apply to activate the changes.

This should get AsusWRT working for SNMP as an agent.

Then do an snmpwalk against the device -- snmpwalk -Os -c public -v2c 192.168.1.1 iso.3.6.1.2.1.1.1

Should do the trick there... if you want to get more info -- snmpwalk -Os -c public -v2c 192.168.1.1

C:\mrtg-2.17.4\bin>perl cfgmaker TestR@192.168.10.1 --global "WorkDir: c:\www\mrtg" --output mrtg.cfg

MRTG runs better under Linux - under Windows, even with recent changes, it's not optimal.
 
Does it support v2c?
Geting the same issue with 2c as with v1

For RT56, I used mini_snmpd package from Entware. It only consumes 500KB memory. Good for my purpose. Entware has a full-blown snmpd package as well in case you run out of other options.

Glad to hear people out there still using MRTG :). I have a modified version running on my RT56. Here is a SCREENSHOT: cpu load of ER-X taken by MRTG running on RT56.
 
Glad to hear people out there still using MRTG :). I have a modified version running on my RT56. Here is a SCREENSHOT: cpu load of ER-X taken by MRTG running on RT56.

MRTG is lightweight - and does pretty well within what's it's designed to do - runs really nice on Raspberry Pi2 and above - and its already included in the Raspbian distros...
 
Similar threads
Thread starter Title Forum Replies Date
Alaska99 Asus don't release there GPL anymore? Asuswrt-Merlin 5

Similar threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

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