[SOLVED] Trying to configure snmpd

I've installed LEDE (OpenWrt SNAPSHOT r18250-6832271ee7 / LuCI Master git-21.327.65538-e982c05) on my BT Homehub 5A router and now trying to configure snmp.

I've installed the package snmpd and can do a snmpwalk from a remote system using the defaults. So I know snmp is at least working.

The issue I am facing is if I change any of the contents in /etc/snmp/snmpd.conf and then restart the snmpd daemon the file is set back to the defaults.

If I stop snmpd the file in the symbolic link also dissapears.

root@bt_hh5a:~# cd /etc/snmp/
root@bt_hh5a:/etc/snmp# ls -la
drwxr-xr-x    2 root     root           232 Dec  1 20:50 .
drwxr-xr-x    1 root     root          1032 Dec  1 20:50 ..
lrwxrwxrwx    1 root     root            19 Dec  1 20:50 snmpd.conf -> /var/run/snmpd.conf
root@bt_hh5a:/etc/snmp# ls /var/run/s*
ls: /var/run/s*: No such file or directory

So I'm guessing the file /etc/snmp/snmpd.conf is not the one to edit.

root@bt_hh5a:/etc/snmp# /etc/init.d/snmpd start
root@bt_hh5a:/etc/snmp# ls /var/run/s*
/var/run/snmpd.conf

All the docs I've found online say to edit this file.

Any ideas on which file I should be using?

Odd; because the Wiki does not say that.

Is there an /etc/config/snmpd?

See: https://openwrt.org/docs/guide-user/services/snmp/server

This is old and unsupported (and insecure).

Thanks - that sorted me out. I think I've been looking at this too long and gone down the wrong garden path.

/etc/config/snmpd exists and editing that one does the trick! :roll_eyes:

Will also upgrade. Thanks for spotting that.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.