mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 15:54:29 +02:00
Read the trap type (notification type) of SNMPv2 traps.
This commit is contained in:
parent
90e8132923
commit
cc196880a2
@ -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