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;
|
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…
Reference in New Issue