Fixed SNMP traps handler
This commit is contained in:
parent
a6cb758a48
commit
a2355d82ae
|
|
@ -27,7 +27,7 @@ IFS= read -r sender
|
||||||
#IFS= read -r trapoid
|
#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.
|
# 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
|
if [ -z "$vars" ]; then
|
||||||
vars="$oid = $val"
|
vars="$oid = $val"
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue