• Install
    sudo apt-get install snmpd
  • Backup old configs
    sudo mv /etc/snmp/snmpd.conf  /etc/snmp/snmpd.conf.org
  • Create /etc/snmp/snmpd.conf
    rocommunity  public
    syslocation  "Server Closet, 1B"
    syscontact  dave@dlasley.net
  • Tell snmpd to use the new file and listen on all interfaces

    • sudo nano /etc/default/snmpd
    • Replace
      SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid'

      With

      SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid -c /etc/snmp/snmpd.conf'
  • Restart snmpd
    sudo service snmpd restart
0