How do I enable SNMP on an Ubuntu Linux host so that I can monitor system metrics (CPU, memory, diskspace) with EventSentry?

Article ID: 281
Category: Heartbeat Monitoring
Applies to: 3.0.1 and later
Updated: 2018-11-08

Run the following commands in the terminal:

  1. Update all packages: sudo apt-get update
  2. Install SNMP: sudo apt-get install snmpd

Next we need to configure multiple entries in the snmpd.conf file, there is a manual page located here (link to http://net-snmp.sourceforge.net/docs/man/snmpd.conf.html) which contains information for additional configuration options.

  1. Edit snmpd.conf with text editor of your choice, we will be using nano: sudo nano /etc/snmp/snmpd.conf
  2. Configure agentAddress: agentAddress udp:161,udp6:[::1]:161
    -This will set the server to listen on all IPv4 and IPv6 addresses (remove the hashtags in front of this agentAddress information to make the comment "live")
    -For higher security bind to your IP address. Ex: agentAddress udp:192.168.1.5:161
  3. Configure rocommunity: rocommunity public
    -Change "public" to your community name
  4. Restart the SNMPD service: sudo service snmpd restart

Example Config:

agentAddress udp:161,udp6:[::1]:161
rocommunity NixKB