-
Incident report
-
Resolution: Fixed
-
Trivial
-
None
-
3.0.29, 4.0.17, 5.0.0alpha1
-
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)
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