mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Read the trap type (notification type) of SNMPv2 traps.
(cherry picked from commit b3acda9bf5381f896568a84bbfb6711b76c76cb3)
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…
x
Reference in New Issue
Block a user