OK, so I have went through all the docs online, the wiki and googled a lot, however I'm still unable to get Zabbix server to accept SNMP traps.
I'm using Zabbix 2.0.5 and zabbix_trap_receiver.pl Perl script as trapper.
1) I have successfully configured snmptrapd with snmptrapd.conf:
The snmptrapd daemon is up and running. I have ensured that Perl file is loaded by running snmptrapd with -Debug options.
2) When SNMP trap is received I get the data written to /tmp/zabbix_traps.tmp file too.
3) Zabbix server is configured with SNMPTrapperFile=/tmp/zabbix_traps.tmp and StartSNMPTrapper=1
I can see trapper process starting when the server is started:
However no matter what I do the trap is never received by the zabbix server. I cannot even get it in the logs even though I have "Log unmatched SNMP traps" enabled in the server.
Any pointers?
I'm using Zabbix 2.0.5 and zabbix_trap_receiver.pl Perl script as trapper.
1) I have successfully configured snmptrapd with snmptrapd.conf:
Code:
authCommunity log,execute,net public perl do "/usr/share/doc/zabbix-server-2.0.5/zabbix_trap_receiver.pl";
2) When SNMP trap is received I get the data written to /tmp/zabbix_traps.tmp file too.
Code:
11:41:42 2013/05/08 ZBXTRAP 127.0.0.1 PDU INFO: notificationtype TRAP version 1 receivedfrom UDP: [127.0.0.1]:47382->[127.0.0.1]:162 errorstatus 0 messageid 0 community public transactionid 79 errorindex 0 requestid 215266672 VARBINDS: DISMAN-EVENT-MIB::sysUpTimeInstance type=67 value=Timeticks: (4029649) 11:11:36.49 SNMPv2-MIB::snmpTrapOID.0 type=6 value=OID: SNMPv2-SMI::enterprises.3142.3.1.1.5.1 SNMPv2-SMI::enterprises.3142.3.1.1.2.3 type=4 value=STRING: "just here"
I can see trapper process starting when the server is started:
Code:
24752:20130508:130445.840 server #25 started [snmp trapper #1]
However no matter what I do the trap is never received by the zabbix server. I cannot even get it in the logs even though I have "Log unmatched SNMP traps" enabled in the server.
Any pointers?