I have been struggling to get snmp to work consistently on Ubuntu 20.04. I started on one server and finally got an snmpd.conf configuration that worked on it. I then installed snmp on a number of other Ubuntu 20.04 servers and put the working snmpd.conf file on them but some of them work and the others don't. For the systems that don't I have tried running snmpwalk -v1 -c . It works when I run the command on the servers themselves but when I run it from a different server I get "Timeout: No Response from ".
Output from netstat -an | grep 161 shows "udp 0 0 0.0.0.0:161 0.0.0.0:*" on all my servers
I can ping the servers from the server that I am running the commands from and I have confirmed that the systems' firewalls are allowing access to port 161. In fact, I have disabled ufw on a couple of the servers just to see it that would make a difference and it didn't. Has anyone else run into this? And more importantly, how did you resolve it?