Debian SNMP setup
-
Install the service
apt-get install snmpd
Config the service
mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.ori
create config file
nano /etc/snmp/snmpd.conf
edit config
#Listen on all interfaces, IPv4 only agentAddress udp:161 #ACCESS CONTROL view all included .1.3.6.1.2.1.1 view all included .1.3.6.1.2.1.25.1 #SNMP v2 (Read only) with community "public" restricted to Network #Please change IP 192.168.1.0/24 to your Network. rocommunity public 10.73.0.0/16 #Run as root agentuser root
ggf firewall rule
iptables -A INPUT -s 192.168.0.0/16 -p udp --dport 161 -j ACCEPT
service starten und auto starten
service snmpd restart systemctl enable snmpd