What's new

RT-AX88U snmpd - mini Guide

  • 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!

corgan2222

Occasional Visitor
as discused in this thread f the normal snmpd crashed on the RT-AX88U.
So i tryed the mini-snmp package from entware, wich runs totally fine. Just want to share, if someone need this.

install mini_snmpd, snmp-utils

Code:
opkg install mini_snmpd
opkg install snmp-utils

create /opt/etc/init.d/S50mini_snmpd

Code:
#!/bin/sh

ENABLED=yes
PROCS=mini_snmpd
ARGS="-i br0,eth0 -D RT-AX88U -L YOUR-LOCATION -c public -C YOUR-EMAIL"
PREARGS=""
DESC=$PROCS
PATH=/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

. /opt/etc/init.d/rc.func

add/replace your Interfaces in the script after -i and replace YOUR-LOCATION and YOUR-EMAIL with your values.

test from different linux pc with installed snmp

Code:
 snmpwalk -v2c -c public 192.168.X.X

Anmerkung 2019-04-29 071004.jpg


grafana:

Anmerkung 2019-04-29 054531.jpg

Anmerkung 2019-04-29 065602.jpg
 
Last edited:
This is great, thank you. I was just looking for the SNMP settings, as I swore that my AC68U had it (and it does), but they stripped it out of this AX88U model for some reason.
 
@corgan2222 thanks for this. Working perfectly with asus merlin 384.13. Running for about a day now with no issues. The only small caveat is that in order to install entware you need a (preferably usb3) key drive permanently in the router, and for some reason that area of this router runs really hot even to the touch (if the key drive has a metal casing you will quickly notice this)

In case anyone is wondering, eth0 is the WAN port. Also, since this router is using kernel >= 4.1, the snmp stats on the WAN port reflect the real thing, i.e. the counters are not impacted by the well known traffic counter issues in kernel 2.6 /proc/dev/net that impacts the RT-AC3100 and similar platforms. One more neat side benefit of migrating to AX88U
 
Thanks for this. I'm just configuring a new Asus RT-AC86U and also was looking for SNMP. Now I see I have an option to use it moving forward.

John
 
I have this error :
Code:
Unknown package 'snmp_utils'.

Collected errors:

 * opkg_install_cmd: Cannot install package snmp_utils

My router is RT-AC86U with last stable Rmerlin
 
Unknown package 'snmp_utils'.
Collected errors:
* opkg_install_cmd: Cannot install package snmp_utils


RT-AX88. Same here - there is NO snmp-utils.
 
So, it's not:

Code:
opkg install mini_snmpd
opkg install snmp_utils

It's:

Code:
opkg install mini_snmpd
opkg install snmp-utils

instead.
 
So, it's not:

Code:
opkg install mini_snmpd
opkg install snmp_utils

It's:

Code:
opkg install mini_snmpd
opkg install snmp-utils

instead.

Yes, but it would appear that in post #1 the correct package is actually correctly listed immediately above it ;)

upload_2019-12-3_17-50-16.png
 
Yes, but it would appear that in post #1 the correct package is actually correctly listed immediately above it ;)

View attachment 20118

Look, when you set code fragments for copy paste, people do just that. Outside of a code block, some people assume the grammar police use dashes and not underscores and it has nothing to do with actual program name. Be real, correct the mistake, move on.
 
Thanks for sharing. Before I wasn't even aware that mini-snmp exists.

I set it up on an AX88U and on an old N66U running stock Asus as well. It's a bit limited, as expected, but provides the basic status and traffic information. Now I can check on all my home devices for no reason at all. :)

 
I'm trying and it installs but the output in snmpwalk is:


MIB search path: /root/.snmp/mibs:/opt/share/snmp/mibs
Cannot find module (NET-SNMP-EXTEND-MIB): At line 0 in (none)
Cannot find module (SNMPv2-MIB): At line 0 in (none)
Cannot find module (IF-MIB): At line 0 in (none)
Cannot find module (IP-MIB): At line 0 in (none)
Cannot find module (TCP-MIB): At line 0 in (none)
Cannot find module (UDP-MIB): At line 0 in (none)
Cannot find module (HOST-RESOURCES-MIB): At line 0 in (none)
Cannot find module (NOTIFICATION-LOG-MIB): At line 0 in (none)
Cannot find module (DISMAN-EVENT-MIB): At line 0 in (none)
Cannot find module (DISMAN-SCHEDULE-MIB): At line 0 in (none)
Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
Cannot find module (TUNNEL-MIB): At line 0 in (none)
Cannot find module (IPV6-FLOW-LABEL-MIB): At line 0 in (none)
Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)
Cannot find module (NET-SNMP-PASS-MIB): At line 0 in (none)
 
I'm a little bit further by copying the files into the dir now I get :
Cannot adopt OID in XXXXXXXXX
 
still not working
is there annyone who has it workin in fw 384.17 on the ax88u???


Verstuurd vanaf mijn SM-G965F met Tapatalk
 
Have you tried the latest RMerlin 384.18_0 release final yet?
 
Ah, excellent, thanks for that cracking post. Installed/working in moments on my RT-AC86U with Merlin Firmware Version:384.18 and I now have pretty graphs scrolling around my monitor :) Wonderful.

I've been muttering about the dodgy state of the RT-AC86U for some while, and this has restored some of my early enthusiasm. Obviously mini-snmpd doesn't have all the net-snmp features but it is a vast improvement on nothing.
 
Ah, excellent, thanks for that cracking post. Installed/working in moments on my RT-AC86U with Merlin Firmware Version:384.18 and I now have pretty graphs scrolling around my monitor :) Wonderful.

I've been muttering about the dodgy state of the RT-AC86U for some while, and this has restored some of my early enthusiasm. Obviously mini-snmpd doesn't have all the net-snmp features but it is a vast improvement on nothing.
what do you use to display the graphs?
thanks
 

Similar threads

Sign Up For SNBForums Daily Digest

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