Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-9790

SNMP traps not received by zabbix server

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Won't fix
    • Icon: Major Major
    • None
    • 2.4.0
    • Appliance (L)
    • None

      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

            Unassigned Unassigned
            moonzabbix mouna bakkali
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: