From a2355d82ae916a3de0a1d43293cfdec2b4a7faa7 Mon Sep 17 00:00:00 2001 From: Alexey Pustovalov Date: Fri, 15 May 2026 19:07:16 +0900 Subject: [PATCH] Fixed SNMP traps handler --- templates/scripts/snmptraps/zabbix_trap_handler.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/scripts/snmptraps/zabbix_trap_handler.sh b/templates/scripts/snmptraps/zabbix_trap_handler.sh index 4997867b..3abf7f58 100644 --- a/templates/scripts/snmptraps/zabbix_trap_handler.sh +++ b/templates/scripts/snmptraps/zabbix_trap_handler.sh @@ -27,7 +27,7 @@ IFS= read -r sender #IFS= read -r trapoid # The remaining lines will contain the payload varbind list. For SNMPv1 traps, the final OID will be SNMPv2-MIB::snmpTrapEnterprise.0. -while IFS= read -r oid val; do +while read -r oid val; do if [ -z "$vars" ]; then vars="$oid = $val" else