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

SNMP traps documentation misses a config in the setup example

    XMLWordPrintable

Details

    • Incident report
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 3.0.29, 4.0.17, 5.0.0alpha1
    • None
    • Documentation (D)
    • Team C
    • Sprint 74 (Mar 2021), Sprint 75 (Apr 2021), Sprint 76 (May 2021), Sprint 77 (Jun 2021), Sprint 78 (Jul 2021), Sprint 79 (Aug 2021), Sprint 80 (Sep 2021), Sprint 81 (Oct 2021), Sprint 82 (Nov 2021)

    Description

      https://www.zabbix.com/documentation/5.0/manual/config/items/itemtypes/snmptrap
      must be updated

      1. "2 Setting up SNMP trap monitoring" document section

       When SNMPTT is configured to receive the traps, configure SNMPTT to log the traps:
      
          log traps to the trap file which will be read by Zabbix:
          log_enable = 1
          log_file = [TRAP FILE]
          set the date-time format:
          date_time_format = %H:%M:%S %Y/%m/%d = [DATE TIME FORMAT]
      

      needs the following:

      net_snmp_perl_enable = 1
      

      2. "4 Setup example" document section

      snmptt.ini - configure output file and time format:
      log_file = /tmp/my_zabbix_traps.tmp
      date_time_format = %H:%M:%S %Y/%m/%d
      

      needs the following:

      net_snmp_perl_enable = 1
      

      Without this the example setup does not work (for Zabbix 4.5 on Ubuntu).
      Interestingly, the community setup guide for the CentOS does mention this config:
      https://zabbix.org/wiki/ConfigureSnmptrapsCentos6_RHEL6

      Edit snmptt Config
      
      vi /etc/snmp/snmptt.ini
      
      translate_log_trap_oid = 2
      net_snmp_perl_enable = 1
      date_time_format = %H:%M:%S %Y/%m/%d
      log_file = /tmp/zabbix_traps.tmp
      log_system_enable = 1
      

      Also, one of the users mentioned this issue on the forum:
      https://www.zabbix.com/forum/zabbix-help/28042-snmp-trap-handling-setup

      Attachments

        Activity

          People

            arimdjonoks Artjoms Rimdjonoks
            arimdjonoks Artjoms Rimdjonoks
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: