-
Incident report
-
Resolution: Won't fix
-
Minor
-
3.0.18
-
Ubuntu
-
Sprint 37, Sprint 38
-
1
Steps to reproduce
I have installed Zabbix 3.0.18 on Ubuntu16.04. I am using snmptt to handle my traps and I have configured the file this way:
/etc/snmp/snmptt.conf
EVENT general .* "General Event" Normal
FORMAT ZBXTRAP $aA $aA severity: $s $Fn + $*
which is following Zabbix trap format:
[timestamp] [the trap, part 1] ZBXTRAP [address] [the trap, part 2]
When I send traps via IPv4/IPv6 with SNMPv2 I can see the trap in Zabbix.
Problem occurs when I send SNMPv3 traps using IPv6 the text format is changed. Is there a snmptt.conf format I can use so it works for both SNMPv2 and v3?
Result:
/tmp/zabbix_traps.tmp
# SNMPv2 IPv4/IPv6
13:49:48 2018/06/29 SNMPv2-SMI::enterprises.232.0.11003 Normal "General Event" 192.168.80.33 - ZBXTRAP 192.168.80.33 severity: Normal
+ TXSLPERFLAB-H-PE0C7O1-001 4 HPE Onboard Administrator Test Trap sent from enclosure: TXSLPERFLAB-001
- SNMPv3 IPv6
13:50:04 2018/06/29 SNMPv2-SMI::enterprises.232.0.11003 Normal "General Event" UDP/IPv6: [2607:f160:a:f0:9:fe0:0:2002]:1205 - ZBXTRAP severity: Normal
+ TXSLPERFLAB-H-PE0C7O1-002 4 HPE Onboard Administrator Test Trap sent from enclosure: TXSLPERFLAB-002
Expected:
13:50:04 2018/06/29 SNMPv2-SMI::enterprises.232.0.11003 Normal "General Event" [2607:f160:a:f0:9:fe0:0:2002] - ZBXTRAP severity: Normal
+ TXSLPERFLAB-H-PE0C7O1-002 4 HPE Onboard Administrator Test Trap sent from enclosure: TXSLPERFLAB-002