Install:
apt -y install snmptrapd
Enable at startup:
systemctl enable snmptrapd
Start now:
systemctl start snmptrapd
Check status:
systemctl status snmptrapd
Check if the daemon listens on port 162:
netstat -tulpn|grep snmptrapd
Move to /usr/bin
cd /usr/bin
Install:
Set it executable:
chmod +x zabbix_trap_receiver.pl
See if traps is enabled:
grep StartSNMPTrapper= /etc/zabbix/zabbix_proxy.conf
See the trapper file:
grep SNMPTrapperFile= /etc/zabbix/zabbix_proxy.conf
Move to:
cd /etc/snmp
Install available communities:
No comments:
Post a Comment