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

    • Type: Incident report
    • Status: IN DOCUMENTING
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 3.0.29, 4.0.17, 5.0.0alpha1
    • Fix Version/s: None
    • Component/s: Documentation (D)
    • Labels:
    • Team:
      Team D

      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

            Assignee:
            martins-v Martins Valkovskis
            Reporter:
            arimdjonoks Artjoms Rimdjonoks
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated: