Vai al contenuto

Install and enable SNMP on Debian Linux

Installation of the SNMP daemon

apt-get install snmpd

Create a backup of the SNMP configuration file

cp /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.orig

Adjust the configuration

Next, edit /etc/snmp/snmpd.conf and perform the changes below.

For the simplest possible configuration

  • Comment-out (using #) or simply delete all lines from the original file
  • Add the lines below and make sure they are not commented. If you don’t use IPv6, you don’t need to add the IPv6 setup.
# IPv4 setup
agentaddress udp:161
rocommunity public 0.0.0.0/0

# IPv6 setup
agentaddress udp6:161
rocommunity6 public ::/0

 Save changes and restart the snmpd service

sudo systemctl restart snmpd.service

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *