Installing SNMP in Ubuntu 18.04

Here are the simple steps to install SNMP in Ubuntu 18.04

apt-get update && apt-get install snmp snmpd snmp-mibs-downloader

Next, using your text editor, edit /etc/snmp/snmpd.conf to look like this:
# this will make snmpd listen on all interfaces

agentAddress  udp:161

# Or make it listen only to the local private network interface eg. eth0(

agentAddress  udp:

# a read only community ‘local’ and the source network* is defined

rocommunity local

Note: Make sure your firewall opens the port 161.
Restart the SNMP Daemon

service snmpd restart

Testing the SNMP service locally

snmpwalk -v 2c -c public localhost

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.