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!

You need something that can read SNMP to test
 
You need something that can read SNMP to test

Thanks for the reply.

It doesn't look like it's working:

Screenshot 2023-01-17 at 11.57.53 am.png
 
I recall something was not documented correctly about the confg file location. Do some searching
 
@Skeptical.me What is it that you think isn't working?

You said a few posts back that you got it working. Your were able to snmpwalk it. Your Nagios program could see it and your image in post #62 shows it working.
 
@Skeptical.me What is it that you think isn't working?

You said a few posts back that you got it working. Your were able to snmpwalk it. Your Nagios program could see it and your image in post #62 shows it working.

Oh, okay ... I wasn't sure. I'm just learning about snmp and Cacti/Nagios so there are a lot of things I don't understand yet.

Thanks for your reply.

The last image I posted had a column that says snmp, and all the devices (apart from the router and printer) say "Down" , so I assumed that meant snmp wasn't working.
 
The last image I posted had a column that says snmp, and all the devices (apart from the router and printer) say "Down" , so I assumed that meant snmp wasn't working.
SNMP only reports information about the machine it's running on (i.e. your router). If you want other machines to report SNMP data they need to be running their own SNMP service.
 
SNMP only reports information about the machine it's running on (i.e. your router). If you want other machines to report SNMP data they need to be running their own SNMP service.
Ahh, right. I had assumed snmp on the router reported the devices connected. Total noob lol ... thanks!
 
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

View attachment 17274

grafana:

View attachment 17272
View attachment 17273
Hi Help, please.
by the site "https://openwrt.org/toh/asus/start" , OpenWrt not support "ASUS RT-AX88U". So how did you manage to run commands like this : "opkg install mini_snmpd" ?

10x
 
I got bitten by this change as well, I realized just now, with snmpd broken in my install for the last month and a half since I did an opkg update.
To make a long story short, the new mini-snmpd works perfectly but it needs some help
1) the old configuration you had in /opt/etc/init.d/S50mini_snmpd (in the "ARGS" variable)_ is now completely ignored, I found that out the hard way. S50... is still used to start / restart the daemon though.
2) the new configuration goes in /opt/etc/mini-snmpd.conf. Here you configure your community string and the interfaces that you want to expose via snmp, by default, it does not expose ANY interface. You can inspect what interfaces your router has configured by typing ifconfig. If you just want the WAN (internet connection) traffic then you want "eth0", with that, remove the "#" prefix in the "iface-table" line, and adjust the interface list according to what you want

iface-table = { "br0", "eth0" }
Basically that's all you need to do in this file, no need to make any other change unless you know what you are doing

3) restart the daemon
/opt/init.d/S50mini_snmpd restart


4) test it:
snmpwalk -v 2c -c public -Of localhost .1

you will notice that 64 bit counters are now supported which is nice

YMMV but this worked for me, no need to downgrade mini-snmpd versions
Hi,

I've updated 1.6-1 to 1.6-3, and edited the conf file but cannot restart the daemon.

I see a /opt/init.d/S50mini_snmpd not found error.

This does not respond to any commands:

admin@RT-AX88U-4680:/tmp/mnt/rtax88u/entware/etc/init.d# ls

S50mini_snmpd rc.func rc.unslung

admin@RT-AX88U-4680:/tmp/mnt/rtax88u/entware/etc/init.d#


Thanks in advance for any help!
 
Last edited:
The restart command is wrong. It should be:
Code:
/opt/etc/init.d/S50mini_snmpd restart

Or just reboot the router.
 
Last edited:
Also, for AX88U I would recommend installing regular snmpd from Entware instead of mini_snmpd, unless you have a specific reason for it.
RT-AX88U stopped crashing with snmpd two years ago starting with firmware 386.8, and works fine with current 3004.388.7 as well.
 
Also, for AX88U I would recommend installing regular snmpd from Entware instead of mini_snmpd, unless you have a specific reason for it.
RT-AX88U stopped crashing with snmpd two years ago starting with firmware 386.8, and works fine with current 3004.388.7 as well.
Thanks, I wasn't aware.

I've removed the mini_snmpd package and installed the snmpd and snmp-utils packages.

I'm stuck as to how to configure and where to save the files; searching the site hasn't been entirely clear.
 
Last edited:
I'm stuck as to how to configure and where to save the files; searching the site hasn't been entirely clear.

Yeah, it's a bit tricky to get it running. Below is how I set up snmpd from scratch on my RT-AX88U router and on the AiMesh nodes as well.

Installation​

1. Install entware from amtm
2. install the snmpd and snmp-utils packages

Configuration​

1. Edit /opt/etc/init.d/S47snmpd and clear the ARGS content. For some reason it doesn't work with it. Effectively you want the following contents of S47snmpd
Bash:
#!/bin/sh

ENABLED=yes
PROCS=snmpd
ARGS=""
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

2. Create or replace /opt/etc/snmp/snmpd.conf with the following basic contents
Code:
agentAddress  udp:161
rocommunity public default
sysName RT-AX88U
sysLocation LivingRoom
sysContact your_email

Testing​

Start snmpd:
Code:
/opt/etc/init.d/S47snmpd restart
Check if it's running:
Code:
/opt/etc/init.d/S47snmpd check
Check response (assuming this is your router's IP)
Code:
snmpwalk -c public 192.168.1.1

Further actions​

Tweak snmpd.conf to e.g. limit monitored interfaces, or to enhance security by removing public community, adding users and passwords, enabling SNMPv3 if your client allows, etc.

Or if you're just running a small home LAN, just leave it as it is and call it a day. :)
 
Yeah, it's a bit tricky to get it running. Below is how I set up snmpd from scratch on my RT-AX88U router and on the AiMesh nodes as well.

Installation​

1. Install entware from amtm
2. install the snmpd and snmp-utils packages

Configuration​

1. Edit /opt/etc/init.d/S47snmpd and clear the ARGS content. For some reason it doesn't work with it. Effectively you want the following contents of S47snmpd
Bash:
#!/bin/sh

ENABLED=yes
PROCS=snmpd
ARGS=""
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

2. Create or replace /opt/etc/snmp/snmpd.conf with the following basic contents
Code:
agentAddress  udp:161
rocommunity public default
sysName RT-AX88U
sysLocation LivingRoom
sysContact your_email

Testing​

Start snmpd:
Code:
/opt/etc/init.d/S47snmpd restart
Check if it's running:
Code:
/opt/etc/init.d/S47snmpd check
Check response (assuming this is your router's IP)
Code:
snmpwalk -c public 192.168.1.1

Further actions​

Tweak snmpd.conf to e.g. limit monitored interfaces, or to enhance security by removing public community, adding users and passwords, enabling SNMPv3 if your client allows, etc.

Or if you're just running a small home LAN, just leave it as it is and call it a day. :)
Spectacular, thank you so much, very much appreciated! I was lost in a sea of either subtly or very different snmpd.conf files!

One last question, if I may, do I need to do anything in terms of my USB stick / JFFS?
 

Similar threads

Latest 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!
Top