Merge c7d4956b25 into 9a59e8c448
This commit is contained in:
commit
9d71f47ddf
1 changed files with 2 additions and 2 deletions
|
|
@ -538,8 +538,8 @@ sub node_to_trapitem {
|
||||||
|
|
||||||
# Create trap key
|
# Create trap key
|
||||||
my $oid = $node->{ objectID };
|
my $oid = $node->{ objectID };
|
||||||
$oid =~ s/\./\\./g;
|
$oid =~ s/\.1\.3\.6\.1\.4\.1/SNMPv2\-SMI\:\:enterprises/g; # Replace .1.3.6.1.4.1 with SNMPv2-SMI::enterprises
|
||||||
$item->{ key } = "snmptrap[\"\\s$oid\\s\"]";
|
$item->{ key } = "snmptrap[\"$oid\"]";
|
||||||
|
|
||||||
# Parse item desciption
|
# Parse item desciption
|
||||||
my $desc = '';
|
my $desc = '';
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue