_05:22:23.41193 DEBUG: receiveMessage: msgVersion 3, msg decoded Send a test trap: ls -l /tmp # note down the /tmp/zabbix_traps.tmp do not exist This will output something like: zabbix 20169 0.0 0.4 97576 4196 ? S 15:15 0:00 /usr/local/sbin/zabbix_proxy: snmp trapper Ĭlear logs and restart services: > /var/log/zabbix/zabbix_proxy.logĬheck if services are up and running: systemctl status Ĭkeck if proxy trapper process is started: grep "snmp trapper" /var/log/zabbix/zabbix_proxy.log Restart Zabbix Server: systemctl restart zabbix-proxyĬheck if there is any listener: ps -aux | grep nmp Sed -i "s|^SNMPTrapperFile=.*$|SNMPTrapperFile=\/tmp\/zabbix_traps.tmp|" $conf Sed -i "s|^.*StartSNMPTrapper=.*$|StartSNMPTrapper=1|" $conf Restart SNMP trap daemon: systemctl restart snmptrapdĮnable Zabbix Trapper in "zabbix_nf": conf=$(find / -name "zabbix_nf" | grep "/etc/") Sed -i "s|^DBName=zabbix_proxy|DBName=\/tmp\/|" /etc/zabbix/zabbix_nf
Sed -i "s|^Hostname=Zabbix proxy|Hostname=CentOS7ProxY|" /etc/zabbix/zabbix_nf Test if server is accessible: nmap -p 10051 .com Whitelist all allowed community names: cat /etc/snmp/nf Set the file executable: chmod +x zabbix_trap_Ĭheck if the temp directory is correct: grep "zabbix_traps.tmp" /usr/bin/zabbix_trap_