Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions lib/Monitoring/GLPlugin/SNMP.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1459,6 +1459,14 @@ sub implements_mib {
$traces = $Monitoring::GLPlugin::SNMP::session->get_next_request(%params);
$Monitoring::GLPlugin::SNMP::session->timeout($timeout);
}

# endOfMibView probably does not give much information here
foreach (keys %{$traces}) {
if (${$traces}{$_} eq 'endOfMibView') {
delete @{$traces}{$_};
}
}

if ($traces && # must find oids following to the ident-oid
! exists $traces->{$Monitoring::GLPlugin::SNMP::MibsAndOids::mib_ids->{$mib}} && # must not be the ident-oid
grep { # following oid is inside this tree
Expand Down