Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to set up SNMP v3 network monitoring for Ubuntu either 18.04 or 20.04. I have loaded all the SNMP modules and configured a user and set up the firewall to allow 161 and 162. 'sudo ufw status verbose' shows ALLOW IN for ports 161 & 162. From this machine to a CentOS machine I can do an SNMP walk just fine. But from the CentOS machine to the Ubuntu machine it times out. I have used the exact same credentials on both machines. I even disabled AppArmor but no go.
Is there something I am missing? I am trying to use OpManager to monitor this and the tool gives errors as if I never configured SNMP.
I am trying to set up SNMP v3 network monitoring for Ubuntu either 18.04 or 20.04. I have loaded all the SNMP modules and configured a user and set up the firewall to allow 161 and 162. 'sudo ufw status verbose' shows ALLOW IN for ports 161 & 162. From this machine to a CentOS machine I can do an SNMP walk just fine. But from the CentOS machine to the Ubuntu machine it times out. I have used the exact same credentials on both machines. I even disabled AppArmor but no go.
Is there something I am missing? I am trying to use OpManager to monitor this and the tool gives errors as if I never configured SNMP.
Sorry to start with something very basic...but you say you loaded the SNMP modules, and configured SNMPD. But did you start the service?
Code:
service snmpd start (or "status" to check it)
Test to make sure you can at least query the box locally with snmpwalk. Also, did you open the ports for UDP or TCP (SNMP uses UDP)?
Yes the daemon is running and I can snmpwalk localhost just fine.
Ok...and UDP is open, not TCP, right? Typically, if you can walk the localhost but not over the network, that obviously means a network issue. Are those ports open on the other systems for return traffic? Anything in between the two??
Ok...and UDP is open, not TCP, right? Typically, if you can walk the localhost but not over the network, that obviously means a network issue. Are those ports open on the other systems for return traffic? Anything in between the two??
All firewalls are configured for 161 and 162 UDP and the other CentOS machine can be monitored just fine from my NMS. Both machines are in the same subnet on the same VLAN.
I am trying to set up SNMP v3 network monitoring for Ubuntu either 18.04 or 20.04. I have loaded all the SNMP modules and configured a user and set up the firewall to allow 161 and 162. 'sudo ufw status verbose' shows ALLOW IN for ports 161 & 162. From this machine to a CentOS machine I can do an SNMP walk just fine. But from the CentOS machine to the Ubuntu machine it times out. I have used the exact same credentials on both machines. I even disabled AppArmor but no go.
Is there something I am missing? I am trying to use OpManager to monitor this and the tool gives errors as if I never configured SNMP.
...AR
I FINALLY figured this out. Ubuntu "out of the box" only allows local SNMP queries, it's restricted to 127.0.0.1. You need to modify the snmpd.conf at /etc/snmp and there will be a value called agentAddress. It will have a couple lines, one for local access and one for all access. Comment out the local access line and uncomment the line allowing all access and restart the snmpd daemon.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.