Ad Widget

Collapse

SNMP trap not picked up by zabbix server though making it to /tmp/zabbix_traps.tmp

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sivabi09
    Junior Member
    • Jun 2023
    • 3

    #1

    SNMP trap not picked up by zabbix server though making it to /tmp/zabbix_traps.tmp

    Hi,
    I have setup snmp traps monitoring and tried both perl processing and shell script processing.
    I can see the traps are making it to /tmp/zabbix_traps.tmp file from my device.

    But i dont see them on the fallback snmp trap item object in zabbix gui. history always shows empty.
    Any suggesstions please?
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    Are your settings for 'SNMPTrapperFile' and 'StartSNMPTrapper' in /etc/zabbix/zabbix_server.conf correct?

    Are you on a platform that starts zabbix_server via systemd, and if so is PrivateTmp set?

    Comment


    • sivabi09
      sivabi09 commented
      Editing a comment
      Yes Tim,
      Below are my settings and its the same file in .pl file

      StartSNMPTrapper=1
      SNMPTrapperFile=/tmp/zabbix_traps.tmp

      Am on ubuntu - used systemctl - i have not set any privatetmp
  • sivabi09
    Junior Member
    • Jun 2023
    • 3

    #3
    Yes Tim,
    Below are my settings and its the same file in .pl file

    StartSNMPTrapper=1
    SNMPTrapperFile=/tmp/zabbix_traps.tmp

    Am on ubuntu - used systemctl - i have not set any privatetmp

    Comment

    • Hamardaban
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • May 2019
      • 2713

      #4
      Set the "Log unmatched SNMP traps​"​ option


      You might be interested in reading this: https://blog.zabbix.com/snmp-traps-in-zabbix/
      Pay attention to the Testing​ section.

      Comment


      • sivabi09
        sivabi09 commented
        Editing a comment
        yes thnx, i followed the steps in the blog ....
        and Log unmatched SNMP traps is enabled too
        i see the traps are logged by perl script in the log file, its just the zabbix application not picking it up - really puzzled..
    • sivabi09
      Junior Member
      • Jun 2023
      • 3

      #5
      Ok this is weird. i finally managed to sort it. I used service restart instead of systemctl restart for both snmptrapd and zabbix-server and it works now. thanks all

      Comment

      Working...