Ad Widget

Collapse

zabbix server doesn't receive trap

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jose luis
    Junior Member
    • Aug 2013
    • 4

    #1

    zabbix server doesn't receive trap

    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.
  • Heilig
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Mar 2013
    • 366

    #2
    You can't see traps in /tmp/zabbix_traps.tmp or in zabbix? Please, provide more information.

    Comment

    • jose luis
      Junior Member
      • Aug 2013
      • 4

      #3
      zabbix traps

      Originally posted by Heilig
      You can't see traps in /tmp/zabbix_traps.tmp or in zabbix? Please, provide more information.
      I can`t see traps in /tmp/zabbix_traps.tmp and I don`t see traps in zabbix_server.log.

      I create a zabbix host but i can`t see traps in the Monitoring/lastest data

      Comment

      • Heilig
        Senior Member
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Mar 2013
        • 366

        #4
        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).

        Comment

        • jose luis
          Junior Member
          • Aug 2013
          • 4

          #5
          zabbix server don´t receive traps

          Hi, thanks for you attention. the zabbix_traps.tmp file receives traps, but the zabbix server doesn´t.

          I read this page (https://www.zabbix.com/documentation...types/snmptrap)

          I did test with SNMPTT and PERL but the zabbix server doesn´t recive traps, only the zabbix_traps.tmp file.

          Comment

          • Heilig
            Senior Member
            Zabbix Certified Trainer
            Zabbix Certified SpecialistZabbix Certified Professional
            • Mar 2013
            • 366

            #6
            Hi,
            Zabbix server configured to receive traps (Configuring Zabbix server/proxy - https://www.zabbix.com/documentation...types/snmptrap)?
            Also, please create in zabbix "snmptrap.fallback" item and check result.

            Comment

            • duckdiver
              Junior Member
              • Aug 2010
              • 7

              #7
              hi,

              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.

              ...did my way trough http://zabbix.org/wiki/ConfigureSnmptrapsCentos6_RHEL6

              and also Zabbix Wiki



              Any ideas??

              Regards

              Comment

              • wenyy
                Junior Member
                • Dec 2015
                • 1

                #8
                I get this problem too ! anybody can troubleshooting ?

                i follow this url : https://www.zabbix.org/wiki/Start_wi...raps_in_Zabbix
                traps updated in log files , but item key still no data !

                Maybe there is something mistakes in zabbix_trap_receiver.pl , when sending trap to server , it get failed . and no error log echo .

                Comment

                • Guntis
                  Junior Member
                  • Mar 2019
                  • 18

                  #9
                  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

                  Working...