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.
This commit is contained in:
parent
71407a94af
commit
b3acda9bf5
@ -222,6 +222,11 @@ sub pandora_snmptrapd {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$oid =~ s/.* = OID: //;
|
$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);
|
$data = join("\t", @data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user