You need something that can read SNMP to test
@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.
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.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.
Ahh, right. I had assumed snmp on the router reported the devices connected. Total noob lol ... thanks!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.
Hi Help, please.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
Entware.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
Hi,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
/opt/etc/init.d/S50mini_snmpd restart
That command resulted in "failed." and rebooting the router was also unsuccessful, unfortunately.The restart command is wrong. It should be:
Code:/opt/etc/init.d/S50mini_snmpd restart
Or just reboot the router.
Thanks, I wasn't aware.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.
I'm stuck as to how to configure and where to save the files; searching the site hasn't been entirely clear.
#!/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
agentAddress udp:161
rocommunity public default
sysName RT-AX88U
sysLocation LivingRoom
sysContact your_email
/opt/etc/init.d/S47snmpd restart
/opt/etc/init.d/S47snmpd check
snmpwalk -c public 192.168.1.1
Spectacular, thank you so much, very much appreciated! I was lost in a sea of either subtly or very different snmpd.conf files!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:
Check if it's running:Code:/opt/etc/init.d/S47snmpd restart
Check response (assuming this is your router's IP)Code:/opt/etc/init.d/S47snmpd check
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.
No need, as long as everything is working now.One last question, if I may, do I need to do anything in terms of my USB stick / JFFS?
It is indeed, thanks again, I really appreciate your help!No need, as long as everything is working now.
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!