What's new

snmpd through Entware on RT-AC66U?

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

blumman

New Around Here
snmpd through Entware on RT-AC66U? [SOLVED]

Hi guys,

I have looked everywhere for this answer. My goal is to install snmp so that I can monitor the router with Cacti. I have installed Entware, I have also installed snmpd and snmp-utils with "opkg install" (opkg is available after reboot). The only trace I got of snmpd on the router is in "/tmp/mnt/sda1/entware/etc/snmp" and its config "snmpd.conf -> /opt/var/run/snmpd.conf" (as far as I can tell). I'm not able find any snmp in the process tree. The only thing I got in "/tmp/mnt/sda1/entware/etc/init.d" is "rc.func" and "rc.unslung".

This doesn't work (probably because it is meant for Optware?): http://vip.asus.com/forum/view.aspx...model=RT-N66U+(VER.B1)&page=1&SLanguage=en-us

Would anyone be willing to point me in the direction on how to set this up?

Update: Turns out I was doing it wrong. It still works with Optware and the correct way of getting this to work is:

ipkg update
ipkg install net-snmp
app_set_enabled.sh net-snmp yes

Then edit /opt/etc/snmpd.conf. I'll see if this works with Entware as well.
 
Last edited:
It seems as if there's no start script included. The config also doesn't exist (it's a symlink to a non-existent file).
 
It seems as if there's no start script included. The config also doesn't exist (it's a symlink to a non-existent file).
Not sure what has happened but I ran "app_install.sh <Package name> [device name]" yesterday and now Entware is foobared.

Do you happen to know if Optware is still working? The reason why I installed Entware was because there was a missing Asus Optware repository and I couldn't find anything with the "opkg list" command. I think I'll have to reformat the USB stick and do it all over again.

Edit 1: I'm referring to this when I say that Optware isn't working for me (reinstalled downloadmaster but haven't applied the update yet).

Code:
/tmp/mnt/sda1/asusware# ipkg install snmp
Nothing to be done
An error ocurred, return value: 4.
Collected errors:
Cannot find package snmp.
Check the spelling or perhaps run 'ipkg update'
user@router:/tmp/mnt/sda1/asusware# ipkg update
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/Packages.gz
Inflating http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/Packages.gz
Updated list of available packages in /opt/lib/ipkg/lists/optware.oleg
Downloading http://dlcdnet.asus.com/pub/ASUS/wireless/ASUSWRT/Packages.gz
wget: server returned error: HTTP/1.1 404 Not Found
An error ocurred, return value: 1.
Collected errors:
ipkg_download: ERROR: Command failed with return value 1: `wget    -q -P /opt/ipkg-m2IrbW http://dlcdnet.asus.com/pub/ASUS/wireless/ASUSWRT/Packages.gz'

Code:
/tmp/mnt/sda1/asusware# ipkg list | grep snmp
gsnmp - 0.2.0-1 - SNMP lib.
mini-snmpd - 1.0-1 - SNMP server for embedded systems
net-snmp - 5.4.2.1-1 - net-SNMP is a suite of applications used to implement SNMP v1, SNMP v2c and SNMP v3 using both IPv4 and IPv6
 
Last edited:
That error message (about Not found) is, as far as I know, a known "bug" for Asus repository. The file doesn't exist so the error message can safely be ignored.

But why are you trying to install the package snmp when it doesn't exist? The second part you are showing tells that the package snmp doesn't exist. Seems as if mini-snmpd would be a suitable package to use (but I haven't looked at any of them).
 
That error message (about Not found) is, as far as I know, a known "bug" for Asus repository. The file doesn't exist so the error message can safely be ignored.

But why are you trying to install the package snmp when it doesn't exist? The second part you are showing tells that the package snmp doesn't exist. Seems as if mini-snmpd would be a suitable package to use (but I haven't looked at any of them).


Nerre, that was the problem. The guide or whatever you would call it called for "snmp" so naturally that's what I was trying to install under Entware, which I was running first. Furthermore in Entware "snmp" is "snmpd" which left me with something that didn't work.

Now I'm using Optware and since the Asus forum suggested to install "snmp" I tried the above which didn't work. When I figured out that you actually need "net-snmp" instead of "snmp" I had no issues figuring out the rest. :)
 

Sign Up For SNBForums Daily Digest

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