If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to REGISTER before you can post. To start viewing messages, select the forum that you want to visit from the selection below.
Hi I need help, configure zabbix server to receive traps according to the manual, with Perl trap receiver, but the server does not receive anything. What have to do.
Thanks.
Did you read this page (https://www.zabbix.com/documentation...types/snmptrap)?
First, you need to figure out why the traps are not written in /tmp/zabbix_traps.tmp.
Did you add line like "perl do "[FULL PATH TO zabbix_trap_receiver.pl]";" in snmptrapd.conf?
Did you add line like "authCommunity execute public" or "disableAuthorization yes" in snmptrapd.conf?
Please try to send test trap "snmptrap -v 1 -c public 127.0.0.1 '.1.3.6.1.6.3.1.1.5.3' '0.0.0.0' 6 33 '55' .1.3.6.1.6.3.1.1.5.3 s "eth0"" (run on zabbix server).
i have the same issue as mentioned...
i am using SNMPTT and get the logs in /var/log/snmptt/snmptt.log. everything seems fine in /var/log/snmptt/snmptt.debug..
But i don´t get it to work, to let Zabbix get my trap info
Waht SNMP Port do you use in zabbix ?? 161?
have tried "snmptrap" and "snmptrap.fallback" but now result...
is there a way to debug why zabbix does not see the Log...
i also have added "StartSNMPTrapper=1" and "SNMPTrapperFile=[TRAP FILE]" in /etc/zabbix/zabbix_server.conf.
Hi! Since I found this and many others posts with same problem and no answer, after a while I finally came up with solution, hope this helps someone in future
By running "ps ax | grep snmptrapd" I noticed that there is no snmptrapd process running although service seemed to be running fine. So after some digging I found it that there is default setting: TRAPDRUN=no in file /etc/default/snmptrapd which had to be changed to TRAPDRUN=yes
you can also add logging to file by changing TRAPDOPTS to: TRAPDOPTS='-Lsd -Lf /var/log/snmptrapd.log -p /run/snmptrapd.pid'
Now restart the SNMPTRAPD service: systemctl daemon-reload
systemctl restart snmptrapd.service
And woala /tmp/zabbix_traps.tmp is being created and filled with traps
Comment