web analytics

How to enable SNMP Monitoring on Ubuntu Server 16.04

Reading Time: 1 minute

Install the SNMP Daemon and Utilities

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

Configuring the SNMP Manager


sudo nano /etc/snmp/snmp.conf
To allow the manager to import the MIB files, we simply need to comment out the mibs : line:

#mibs :

Configuring the SNMP Agent Machine


sudo nano /etc/snmp/snmpd.conf

Add the file with these lines


rocommunity public

syslocation “Your Location”

syscontact [email protected]


Save the file.


sudo nano /etc/default/snmpd

Disable this line below by adding # in front of the line 

#SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -g snmp -I -smux -p /var/run/snmpd.pid'

And add a new line


SNMPDOPTS=’-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid -c /etc/snmp/snmpd.conf’


Save the file.


Restart the SNMPD service

$ sudo /etc/init.d/snmpd restart


Leave a Reply

%d bloggers like this: