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

Zabbix server crashes on snmptrap received

    XMLWordPrintable

    Details

    • Type: Problem report
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.4.0alpha1
    • Fix Version/s: 3.4.0alpha1, 3.4 (plan)
    • Component/s: Server (S)
    • Labels:
    • Environment:
      Centos 7, Zabbix 3.4.0alpha1, r68166
    • Team:
      Team A
    • Sprint:
      Sprint 8
    • Story Points:
      0.5

      Description

      Zabbix server crashes when receiving snmptrap using perl script as handler.

      Can't reproduce in 3.2.6 only have the problem in trunk currently.

      To reproduce:

      1. Install snmptrap required things:

      yum -y install net-snmp net-snmp-perl
      
      #in centos:
      
      echo "OPTIONS=-On -Lsd -p /var/run/snmptrapd.pid" >> /etc/sysconfig/snmptrapd 
      
      mkdir -p /etc/zabbix/scripts
      cp misc/snmptrap/zabbix_trap_receiver.pl /etc/zabbix/scripts
      chmod +x /etc/zabbix/scripts/*
      
      echo "perl do'/etc/zabbix/scripts/zabbix_trap_receiver.pl'" >> /etc/snmp/snmptrapd.conf
      echo "disableAuthorization yes" >> /etc/snmp/snmptrapd.conf 
      
      touch /tmp/zabbix_traps.tmp
      sed -i -e 's/# StartSNMPTrapper=0/StartSNMPTrapper=1/g' /etc/zabbix_server.conf
      
      systemctl enable snmptrapd
      service snmptrapd start
      /etc/init.d/zabbix_server restart
      

      2. - Create snmptrap.fallback item under zabbix server host

      3. send some traps:

      snmptrap -v 1 -c public localhost .1.3.6.1.6.3 "" 0 0 coldStart.0
      

      Might be not the first trap that will crash it.

      zabbix_server.log attached.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            vzhuravlev Vitaly Zhuravlev
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: