[ZBX-9790] SNMP traps not received by zabbix server Created: 2015 Aug 19  Updated: 2017 May 30  Resolved: 2015 Aug 24

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Appliance (L)
Affects Version/s: 2.4.0
Fix Version/s: None

Type: Incident report Priority: Major
Reporter: mouna bakkali Assignee: Unassigned
Resolution: Won't fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Hello,

I tried SNMP trap configuration following the zabbix documentation .
I tested with perl trap receiver :
On snmptrapd.conf :
disableAuthorization yes
authCommunity execute public
perl do "/usr/bin/zabbix_trap_receiver.pl";

zabbix_trap_receiver.pl gets traps from snmptrapd and writes them on /tmp/zabbix_traps.tmp

On zabbix-server.conf

SNMPTrapperFile=/tmp/zabbix_traps.tmp
StartSNMPTrapper=1

/tmp/zabbix_traps.tmp gets the traps correctly :
exemple of :

snmptrap -v 1 -c public 127.0.0.1 '.1.3.6.1.6.3.1.1.5.4' '0.0.0.0' 6 33 '55' .1.3.6.1.6.3.1.1.5.4 s "General"

13:11:20 2015/08/19 ZBXTRAP 127.0.0.1
PDU INFO:
errorindex 0
community public
receivedfrom UDP: [127.0.0.1]:40301->[127.0.0.1]:162
errorstatus 0
messageid 0
version 0
transactionid 7
notificationtype TRAP
requestid 0
VARBINDS:
.1.3.6.1.2.1.1.3.0 type=67 value=Timeticks: (55) 0:00:00.55
.1.3.6.1.6.3.1.1.4.1.0 type=6 value=OID: .1.3.6.1.6.3.1.1.5.4.0.33
.1.3.6.1.6.3.1.1.5.4 type=4 value=STRING: "General"
.1.3.6.1.6.3.18.1.4.0 type=4 value=STRING: "public"
.1.3.6.1.6.3.1.1.4.3.0 type=6 value=OID: .1.3.6.1.6.3.1.1.5.4
13:28:04 2015/08/19 ZBXTRAP 127.0.0.1
PDU INFO:
errorindex 0
community public
receivedfrom UDP: [127.0.0.1]:45974->[127.0.0.1]:162
errorstatus 0
messageid 0
transactionid 8
version 0
notificationtype TRAP
requestid 0
VARBINDS:
.1.3.6.1.2.1.1.3.0 type=67 value=Timeticks: (55) 0:00:00.55
.1.3.6.1.6.3.1.1.4.1.0 type=6 value=OID: .1.3.6.1.6.3.1.1.5.4.0.33
.1.3.6.1.6.3.1.1.5.4 type=4 value=STRING: "General"
.1.3.6.1.6.3.18.1.4.0 type=4 value=STRING: "public"
.1.3.6.1.6.3.1.1.4.3.0 type=6 value=OID: .1.3.6.1.6.3.1.1.5.4

But on /var/log/zabbixs/zabbix-server.log , I can't see this trap log ( even with the log level increase option ) .

On the appliance , I have this item configured :

Name : snmp trap fallback
Type : SNMP trap
Key : snmptrap.fallback
Host Interface : 127.0.0.1:162
Type of information : log

and a trigger :

{local host:snmptrap.fallback.nodata(300)}

=0

But I don't get anything and the trigger isn't triggered .

Can you please tell if this is a bug ? how can I verify that the zabbix SNMP trapper is parsing the file /tmp/zabbix_traps.tmp ?

Regards,
Mouna



 Comments   
Comment by richlv [ 2015 Aug 19 ]

there does not seem to be information indicating a bug - please see https://www.zabbix.org/wiki/Getting_help for support options.

additionally, it is suggested to upgrade to 2.4.6, 2.4.0 is quite old

Comment by mouna bakkali [ 2015 Aug 19 ]

I don't know if it's a bug or not.
I just want to know , if the SNMP trap is working on zabbix ?

Comment by mouna bakkali [ 2015 Aug 19 ]

Please provide an answer about the SNMP trap configuration on zabbix which is not working

Comment by richlv [ 2015 Aug 19 ]

this issue tracker is for bugreports. please see the link above for support options.

Generated at Mon May 19 07:00:15 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.