Read the trap type (notification type) of SNMPv2 traps.
(cherry picked from commit b3acda9bf5
)
This commit is contained in:
parent
dd107896c0
commit
ad7d4faded
|
@ -222,6 +222,11 @@ sub pandora_snmptrapd {
|
|||
return;
|
||||
}
|
||||
$oid =~ s/.* = OID: //;
|
||||
if ($oid =~ m/^\.1\.3\.6\.1\.6\.3\.1\.1\.5\.([1-5])$/) {
|
||||
$type = $1 - 1;
|
||||
} else {
|
||||
$type = 6;
|
||||
}
|
||||
$data = join("\t", @data);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue