Fixed SNMP traps handler

This commit is contained in:
Alexey Pustovalov 2026-05-15 19:07:16 +09:00
parent a6cb758a48
commit a2355d82ae

View file

@ -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