Branch Coverage

blib/lib/Monitoring/GLPlugin/SNMP.pm
Criterion Covered Total %
branch 13 632 2.0


line true false branch
31 0 2 unless grep /BEGIN/, keys %Monitoring::GLPlugin::
33 2 0 unless grep /BEGIN/, keys %Monitoring::GLPlugin::SNMP::SysDescPrettify::
35 2 0 unless grep /BEGIN/, keys %Monitoring::GLPlugin::SNMP::MibsAndOids::
37 2 0 unless grep /BEGIN/, keys %Monitoring::GLPlugin::SNMP::CSF::
39 2 0 unless grep /BEGIN/, keys %Monitoring::GLPlugin::SNMP::Item::
41 2 0 unless grep /BEGIN/, keys %Monitoring::GLPlugin::SNMP::TableItem::
49 0 0 if ($self->opts->community and $self->opts->community =~ /^snmpv3(.)(.+)/)
53 0 0 if defined $authprotocol and $authprotocol
55 0 0 if defined $authpassword and $authpassword
57 0 0 if defined $privprotocol and $privprotocol
59 0 0 if defined $privpassword and $privpassword
61 0 0 if defined $username and $username
63 0 0 if defined $contextengineid and $contextengineid
65 0 0 if defined $contextname and $contextname
70 0 0 if ($self->opts->authpassword || $self->opts->authprotocol || $self->opts->privpassword || $self->opts->privprotocol and $self->opts->protocol ne '3')
75 0 0 if ($self->opts->community2 and $self->opts->community2 =~ /^snmpv3(.)(.+)/)
86 0 0 if defined $authprotocol and $authprotocol
88 0 0 if defined $authpassword and $authpassword
90 0 0 if defined $privprotocol and $privprotocol
92 0 0 if defined $privpassword and $privpassword
94 0 0 if defined $username and $username
96 0 0 if defined $contextengineid and $contextengineid
98 0 0 if defined $contextname and $contextname
259 0 0 if ($self->opts->mode =~ /^(bulk)*walk/) { }
260 0 0 if ($self->opts->snmpwalk and $self->opts->hostname) { }
0 0 elsif (not $self->opts->snmpwalk and $self->opts->hostname) { }
261 0 0 if ($self->check_messages == 2)
266 0 0 if ($message eq sprintf('file %s not found', $self->opts->snmpwalk))
284 0 0 if ($self->opts->snmpwalk and not $self->opts->hostname) { }
0 0 elsif ($self->opts->snmpwalk and $self->opts->hostname) { }
296 0 0 if ($self->mode =~ /device::(bulk)*walk/) { }
0 0 elsif ($self->mode =~ /device::uptime/) { }
0 0 elsif ($self->mode =~ /device::supportedmibs/) { }
0 0 elsif ($self->mode =~ /device::supportedoids/) { }
301 0 0 if ($self->opts->oids) { }
0 0 elsif ($self->can('trees')) { }
312 0 0 if ($self->opts->snmpdump)
315 0 0 if $self->opts->protocol =~ /^v(.*)/
316 0 0 if (defined $self->opts->offline) { }
318 0 0 unless ($self->check_pidfile)
337 0 0 $self->mode =~ /bulk/ ? :
345 0 0 if (not $snmpwalkpid) { }
351 0 0 unless $timedout
352 0 0 if -f $self->{'pidfile'}
353 0 0 if ($timedout) { }
362 0 0 $self->mode =~ /bulk/ ? :
381 0 0 if ($self->opts->report ne 'short')
391 0 0 if ($self->opts->name and -f $self->opts->name) { }
0 0 elsif ($self->opts->name and not -f $self->opts->name) { }
393 0 0 if $@
787 0 0 if $self->opts->protocol eq '1' and $mibinfo->[2] ne 'v1'
788 0 0 if $self->opts->protocol ne '1' and $mibinfo->[2] eq 'v1'
793 0 0 if ($self->implements_mib($mib))
802 0 0 unless substr($_, 0, length $Monitoring::GLPlugin::SNMP::MibsAndOids::mib_ids->{$mib}) ne $Monitoring::GLPlugin::SNMP::MibsAndOids::mib_ids->{$mib}
825 0 0 if (my $obj = $self->get_snmp_object($mib, $sym))
827 0 0 if (exists $unknowns->{$oid}) { }
0 0 elsif (exists $$unknowns{$oid . '.0'}) { }
835 0 0 if ($sym =~ /Table$/)
836 0 0 if (my(@table) = $self->get_snmp_table_objects($mib, $sym))
841 0 0 if ($line->{'flat_indices'})
844 0 0 if (exists $$unknowns{$oid . '.' . $line->{'flat_indices'}})
858 0 0 if (exists $confirmed->{$_}) { }
869 0 0 if ($self->opts->snmpwalk) { }
871 0 0 if (not -f $self->opts->snmpwalk) { }
0 0 elsif (-x $self->opts->snmpwalk) { }
883 0 0 if (/^([\.\d]+) = .*?: (\-*\d+)/) { }
0 0 elsif (/^([\.\d]+) = .*?: "(.*?)"/) { }
892 0 0 if (defined $self->opts->offline and $self->opts->mode ne 'walk')
893 0 0 if (time - (stat $self->opts->snmpwalk)[9] > $self->opts->offline)
898 0 0 if $self->opts->mode ne 'walk'
902 0 0 if (/^([\d\.]+) = .*?INTEGER: .*\((\-*\d+)\)/) { }
0 0 elsif (/^([\d\.]+) = .*?Opaque:.*?Float:.*?([\-\.\d]+)/) { }
0 0 elsif (/^([\d\.]+) = STRING:\s*$/) { }
0 0 elsif (/^([\d\.]+) = Network Address: (.*)/) { }
0 0 elsif (/^([\d\.]+) = Hex-STRING: (.*)/) { }
0 0 elsif (/^([\d\.]+) = \w+: (\-*\d+)\s*$/) { }
0 0 elsif (/^([\d\.]+) = \w+: "(.*?)"/) { }
0 0 elsif (/^([\d\.]+) = \w+: (.*)/) { }
0 0 elsif (/^([\d\.]+) = (\-*\d+)/) { }
0 0 elsif (/^([\d\.]+) = "(.*?)"/) { }
935 0 0 if ($oid =~ /^\./)
948 0 0 if (not $self->check_messages)
958 0 0 if (defined $hrSystemUptime and $hrSystemUptime =~ /^\d+$/ and $hrSystemUptime > 0) { }
966 0 0 if (defined $snmpEngineTime and $snmpEngineTime =~ /^\d+$/ and $snmpEngineTime > 0) { }
976 0 0 if (defined $sysUptime)
982 0 0 if (defined $sysUptime and defined $sysDescr) { }
983 0 0 if ($hrSystemUptime) { }
0 0 elsif ($snmpEngineTime) { }
993 0 0 if ($snmpEngineTime and $snmpEngineTime > $hrSystemUptime)
1009 0 0 if ($tac - $tic >= $Monitoring::GLPlugin::SNMP::session->timeout) { }
1016 0 0 if $Monitoring::GLPlugin::SNMP::session
1025 0 0 if ($sysDesc =~ /$Monitoring::GLPlugin::SNMP::SysDescPrettify::vendor_rules->{$vendor}{'vendor_pattern'}/)
1027 0 0 if (my $pretty = &$func($sysDesc, $self->session))
1039 0 0 if (eval 'require Net::SNMP') { }
1051 0 0 if ($self->opts->port)
1054 0 0 if ($self->opts->domain)
1058 0 0 if ($self->opts->protocol eq '3') { }
1061 0 0 if ($self->opts->authpassword)
1065 0 0 if ($self->opts->authprotocol)
1068 0 0 if ($self->opts->privpassword)
1072 0 0 if ($self->opts->privprotocol)
1088 0 0 if (not defined $session) { }
1106 0 0 if $Monitoring::GLPlugin::SNMP::session
1112 0 0 if ($self->opts->protocol eq '3' and defined $self->opts->authprotocol2 || defined $self->opts->authpassword2 || defined $self->opts->privprotocol2 || defined $self->opts->privpassword2 || defined $self->opts->username2 || defined $self->opts->contextengineid2 || defined $self->opts->contextname2) { }
1123 0 0 unless $self->strequal($self->opts->authprotocol, $self->opts->authprotocol2)
1125 0 0 unless $self->strequal($self->opts->authpassword, $self->opts->authpassword2)
1127 0 0 unless $self->strequal($self->opts->privprotocol, $self->opts->privprotocol2)
1129 0 0 unless $self->strequal($self->opts->privpassword, $self->opts->privpassword2)
1131 0 0 unless $self->strequal($self->opts->username, $self->opts->username2)
1133 0 0 if ($relogin)
1153 0 0 if (defined $self->opts->community2 and $self->decode_password($self->opts->community2) ne $self->decode_password($self->opts->community))
1170 0 0 if $Monitoring::GLPlugin::SNMP::session
1176 0 0 if $Monitoring::GLPlugin::SNMP::session
1178 0 0 if $Monitoring::GLPlugin::SNMP::session
1189 0 0 if (ref $self eq 'Classes::Generic') { }
0 0 elsif (ref $self eq 'Classes::Device') { }
0 0 elsif (ref $self eq 'Monitoring::GLPlugin::SNMP') { }
1195 0 0 $self->{'productname'} eq 'unknown' ? :
1204 0 0 if ($@)
1209 0 0 if (ref $self eq 'Monitoring::GLPlugin::SNMP')
1231 0 0 if ($sysobj and $oid eq $sysobj)
1241 0 1 if (exists $Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{$mib} or exists $Monitoring::GLPlugin::SNMP::MibsAndOids::mib_ids->{$mib}) { }
1249 0 1 if ($self->get_variable('verbose'))
1251 0 0 exists $Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{$mib} ? :
1255 0 1 if ($self->get_variable('verbose'))
1257 0 0 exists $Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{$mib} ? :
1260 0 0 if (scalar @newkeys <= scalar @oldkeys)
1266 0 1 if ($@) { }
1269 0 1 if (exists $Monitoring::GLPlugin::SNMP::MibsAndOids::requirements->{$mib})
1281 0 0 unless (exists $Monitoring::GLPlugin::SNMP::MibsAndOids::mib_ids->{$mib})
1285 0 0 if $sysobj
1286 0 0 if ($sysobj and $sysobj eq $Monitoring::GLPlugin::SNMP::MibsAndOids::mib_ids->{$mib})
1290 0 0 if ($sysobj and $Monitoring::GLPlugin::SNMP::MibsAndOids::mib_ids->{$mib} eq substr($sysobj, 0, length $Monitoring::GLPlugin::SNMP::MibsAndOids::mib_ids->{$mib}))
1297 0 0 if ($self->opts->snmpwalk) { }
1321 0 0 if ($Monitoring::GLPlugin::SNMP::session->version == 3)
1322 0 0 if $self->opts->contextengineid
1323 0 0 if $self->opts->contextname
1327 0 0 if ($traces and not exists $$traces{$Monitoring::GLPlugin::SNMP::MibsAndOids::mib_ids->{$mib}} and grep {substr($_, 0, length $Monitoring::GLPlugin::SNMP::MibsAndOids::mib_ids->{$mib}) eq $Monitoring::GLPlugin::SNMP::MibsAndOids::mib_ids->{$mib};} keys %{$traces;})
1339 0 0 if ($timestr =~ /\((\d+)\)/) { }
0 0 elsif ($timestr =~ /(\d+)\s*day[s]*.*?(\d+):(\d+):(\d+)\.(\d+)/) { }
0 0 elsif ($timestr =~ /(\d+):(\d+):(\d+):(\d+)\.(\d+)/) { }
0 0 elsif ($timestr =~ /(\d+):(\d+):(\d+)\.(\d+)/) { }
0 0 elsif ($timestr =~ /(\d+)\s*hour[s]*.*?(\d+):(\d+)\.(\d+)/) { }
0 0 elsif ($timestr =~ /(\d+)\s*minute[s]*.*?(\d+)\.(\d+)/) { }
0 0 elsif ($timestr =~ /(\d+)\.\d+\s*second[s]/) { }
0 0 elsif ($timestr =~ /^(\d+)$/) { }
1374 0 0 $days < 1 ? :
1382 0 0 if (exists $self->{'flat_indices'}) { }
1395 0 0 if ($self->opts->snmpwalk and not $self->opts->hostname)
1399 0 0 if ($self->opts->community)
1422 0 0 if (ref $key_attrs ne 'ARRAY')
1423 0 0 if ($key_attrs eq 'flat_indices')
1446 0 0 if ($force == -1 and -f $statefile) { }
0 0 elsif ($force != 0 or not -f $statefile or (stat $statefile)[9] < $update_deadline) { }
1487 0 0 if (-f $statefile)
1493 0 0 if ($@)
1518 0 0 if (defined $value)
1533 0 0 unless exists $self->{$arrayname}
1534 0 0 if (not exists $Monitoring::GLPlugin::SNMP::tablecache->{$mib} && exists $Monitoring::GLPlugin::SNMP::tablecache->{$mib}{$table}) { }
1539 0 0 if defined $filter and not &$filter($new_object)
1546 0 0 if defined $filter and not &$filter($new_object)
1559 0 0 if (exists $$into_indices{$element->{'flat_indices'}})
1577 0 0 if (&$func($into_elem, $from_elem))
1593 0 0 if (exists $Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{$mib} and exists $Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{$mib}{$definition}) { }
1595 0 0 if (ref $Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{$mib}{$definition} eq 'CODE') { }
0 0 elsif (ref $Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{$mib}{$definition} eq 'HASH') { }
1607 0 0 if ($table and exists $Monitoring::GLPlugin::SNMP::tablecache->{$mib}) { }
0 0 elsif ($mib) { }
1622 0 0 if (exists $Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{$mib} and exists $Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{$mib}{$mo})
1624 0 0 defined $index ? :
1627 0 0 if (defined $response->{$oid})
1628 0 0 if ($response->{$oid} eq 'noSuchInstance' or $response->{$oid} eq 'noSuchObject') { }
0 0 elsif (my(@symbols) = $self->make_symbolic($mib, $response, [[$index]])) { }
1634 0 0 defined $response->{$oid} ? :
1635 0 0 unless (defined $response->{$oid} or defined $index)
1673 0 0 scalar @{$rows;} ? :
1687 0 0 if ($table =~ /^(.*?)\+(.*)/)
1693 0 0 unless (exists $Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{$mib} and exists $Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{$mib}{$table})
1697 0 0 unless (exists $Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{$mib}{$entry})
1703 0 0 if ($augmenting_table)
1706 0 0 if (scalar @{$indices;} == 1 and $indices->[0] == -1) { }
0 0 elsif (scalar @{$indices;} == 1) { }
0 0 elsif (scalar @{$indices;} > 1) { }
0 0 elsif (scalar @{$rows;}) { }
1711 0 0 if ($augmenting_table)
1733 0 0 if ($augmenting_table)
1771 0 0 if ($augmenting_table)
1794 0 0 if ($augmenting_table)
1812 0 0 if ($augmenting_table)
1848 0 0 unless (exists $Monitoring::GLPlugin::SNMP::rawdata->{$oid})
1852 0 0 if (not $self->opts->snmpwalk and scalar @notcached > 0)
1854 0 0 if ($Monitoring::GLPlugin::SNMP::session->version == 0) { }
0 0 elsif ($Monitoring::GLPlugin::SNMP::session->version == 1) { }
0 0 elsif ($Monitoring::GLPlugin::SNMP::session->version == 3) { }
1861 0 0 if $self->opts->contextengineid
1862 0 0 if $self->opts->contextname
1881 0 0 if defined $result->{$key} and $result->{$key} ne 'noSuchInstance'
1889 0 0 exists $$Monitoring::GLPlugin::SNMP::rawdata{$_ . '.0'} ? :
0 0 exists $Monitoring::GLPlugin::SNMP::rawdata->{$_} ? :
1901 0 0 if defined $params{'-startindex'}
1903 0 0 if defined $params{'-endindex'}
1905 0 0 if ($Monitoring::GLPlugin::SNMP::session->version == 3)
1906 0 0 if $self->opts->contextengineid
1907 0 0 if $self->opts->contextname
1920 0 0 if defined $params{'-startindex'}
1922 0 0 if defined $params{'-endindex'}
1924 0 0 if ($Monitoring::GLPlugin::SNMP::session->version == 3)
1925 0 0 if $self->opts->contextengineid
1926 0 0 if $self->opts->contextname
1938 0 0 if defined $params{'-startindex'}
1940 0 0 if defined $params{'-endindex'}
1944 0 0 if ($Monitoring::GLPlugin::SNMP::session->version == 3)
1945 0 0 if $self->opts->contextengineid
1946 0 0 if $self->opts->contextname
1968 0 0 if defined $params{'-startindex'}
1970 0 0 if defined $params{'-endindex'}
1973 0 0 if ($Monitoring::GLPlugin::SNMP::session->version == 3)
1974 0 0 if $self->opts->contextengineid
1975 0 0 if $self->opts->contextname
1982 0 0 if ($singleresult->{$key} eq 'noSuchObject' or $singleresult->{$key} eq 'noSuchInstance' or $singleresult->{$key} eq 'endOfMibView') { }
2003 0 0 if (not $self->opts->snmpwalk) { }
2004 0 0 if (scalar @{$params{'-columns'};} < 5 and $params{'-endindex'} and $params{'-startindex'} eq $params{'-endindex'}) { }
2008 0 0 unless ($result)
2010 0 0 if ($Monitoring::GLPlugin::SNMP::session->error =~ /The message size exceeded the buffer maxMsgSize of (\d+)/i) { }
2016 0 0 if (defined $params{'-endindex'} and defined $params{'-startindex'}) { }
2023 0 0 unless ($result)
2025 0 0 if (not $result and defined $params{'-startindex'} and not $params{'-startindex'} =~ /\./)
2027 0 0 if ($Monitoring::GLPlugin::SNMP::session->error =~ /tooBig/i)
2031 0 0 unless ($result)
2034 0 0 unless ($result)
2040 0 0 if (substr($key, -1) eq ' ')
2078 0 0 if ($params{'-startindex'})
2083 0 0 if (substr($resoid, 0, $lpoid) eq $poid)
2086 0 0 if ($resoid =~ /^$oidpattern(.+)$/)
2087 0 0 if ($1 lt $params{'-startindex'})
2095 0 0 if ($params{'-endindex'})
2100 0 0 if (substr($resoid, 0, $lpoid) eq $poid)
2103 0 0 if ($resoid =~ /^$oidpattern(.+)$/)
2104 0 0 if ($1 gt $params{'-endindex'})
2121 0 0 if (not $self->opts->snmpwalk) { }
2123 0 0 if ($Monitoring::GLPlugin::SNMP::session->version == 3)
2124 0 0 if $self->opts->contextengineid
2125 0 0 if $self->opts->contextname
2130 0 0 if ($Monitoring::GLPlugin::SNMP::session->version == 0) { }
2157 0 0 unless ($self->opts->snmpwalk)
2159 0 0 if ($Monitoring::GLPlugin::SNMP::session->version == 3)
2160 0 0 if $self->opts->contextengineid
2161 0 0 if $self->opts->contextname
2163 0 0 if ($Monitoring::GLPlugin::SNMP::maxrepetitions)
2171 0 0 if (scalar keys %{$result;} == 0)
2174 0 0 if ($Monitoring::GLPlugin::SNMP::session->error =~ /The message size exceeded the buffer maxMsgSize of (\d+)/i)
2178 0 0 if ($params{'-maxrepetitions'}) { }
2190 0 0 if (scalar keys %{$result;} == 0)
2193 0 0 if (exists $params{'-maxrepetitions'} and $params{'-maxrepetitions'} > 1)
2200 0 0 if (scalar keys %{$result;} == 0)
2209 0 0 if (substr($key, -1) eq ' ') { }
2213 0 0 unless (exists $result->{'shortkey'})
2216 0 0 if exists $result->{$key}
2232 0 0 if (exists $Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{$mib} and exists $Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{$mib}{$mo}) { }
2236 0 0 if (defined $index)
2242 0 0 if (not defined $result && defined $result->{$oid} or $result->{$oid} eq 'noSuchInstance' or $result->{$oid} eq 'noSuchObject' or $result->{$oid} eq 'endOfMibView') { }
2247 0 0 defined $result->{$oid} ? :
2250 0 0 defined $result->{$oid} ? :
2271 1 40 if ($oid eq $Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{$mib}{$symoid})
2286 0 0 if (not wantarray and ref \$result eq 'SCALAR' and ref \$indices eq 'SCALAR')
2294 0 0 if (ref $index eq 'ARRAY')
2295 0 0 if (scalar @{$index;} == 0) { }
0 0 elsif (not defined $index->[0]) { }
2306 0 0 if (ref $oid ne 'HASH')
2308 0 0 if (exists $result->{$fulloid})
2309 0 0 if (exists $Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{$mib}{$symoid . 'Definition'}) { }
2310 0 0 if (ref $Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{$mib}{$symoid . 'Definition'} eq 'HASH') { }
0 0 elsif ($Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{$mib}{$symoid . 'Definition'} =~ /^OID::(.*)/) { }
0 0 elsif ($Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{$mib}{$symoid . 'Definition'} =~ /^(.*?)::(.*)/) { }
2311 0 0 if (exists $Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{$mib}{$symoid . 'Definition'}{$result->{$fulloid}}) { }
2318 0 0 unless (exists $Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{$othermib})
2326 0 0 if (scalar @result) { }
2334 0 0 unless (exists $Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{$mib})
2339 0 0 if (exists $Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{$mib} and exists $Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{$mib}{$definition} and ref $Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{$mib}{$definition} eq 'CODE') { }
0 0 elsif (exists $Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{$mib} and exists $Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{$mib}{$definition} and ref $Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{$mib}{$definition} eq 'HASH' and exists $Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{$mib}{$definition}{$result->{$fulloid}}) { }
2363 0 0 if (@{$indices;} and scalar @{$indices;} == 1 and not defined $indices->[0][0])
2368 0 0 if (ref $oid ne 'HASH')
2369 0 0 if (exists $result->{$oid})
2370 0 0 if (exists $Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{$mib}{$symoid . 'Definition'})
2371 0 0 if (ref $Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{$mib}{$symoid . 'Definition'} eq 'HASH') { }
0 0 elsif ($Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{$mib}{$symoid . 'Definition'} =~ /^(.*?)::(.*)/) { }
2372 0 0 if (exists $Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{$mib}{$symoid . 'Definition'}{$result->{$oid}})
2379 0 0 if (exists $Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{$mib} and exists $Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{$mib}{$definition} and ref $Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{$mib}{$definition} eq 'CODE') { }
0 0 elsif (exists $Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{$mib} and exists $Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{$mib}{$definition} and ref $Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{$mib}{$definition} eq 'HASH' and exists $Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{$mib}{$definition}{$result->{$oid}}) { }
2399 0 0 if keys %{$mo;}
2401 0 0 if (wantarray) { }
2458 0 0 if /^$entrypat\.\d+\.(.*)/
2476 0 0 if ($dimensions == 1) { }
0 0 elsif ($dimensions == 2) { }
0 0 elsif ($dimensions == 3) { }
2481 0 0 unless $Monitoring::GLPlugin::SNMP::a->[0] <=> $Monitoring::GLPlugin::SNMP::b->[0]
2484 0 0 unless $Monitoring::GLPlugin::SNMP::a->[0] <=> $Monitoring::GLPlugin::SNMP::b->[0] or $Monitoring::GLPlugin::SNMP::a->[1] <=> $Monitoring::GLPlugin::SNMP::b->[1]
2489 0 0 if ($dimensions == 1) { }
0 0 elsif ($dimensions == 2) { }
0 0 elsif ($dimensions == 3) { }
2490 0 0 if ($_->[0] == $element[0])
2494 0 0 if ($_->[0] == $element[0] and $_->[1] == $element[1])
2498 0 0 if ($_->[0] == $element[0] and $_->[1] == $element[1] and $_->[2] == $element[2])
2542 0 0 unless $self->opts->name
2543 0 0 if (ref $key_attr ne 'ARRAY')
2551 0 0 if ($self->opts->name) { }
2552 0 0 if ($self->opts->regexp) { }
2554 0 0 if ($descr =~ /$pattern/i)
2558 0 0 if ($self->opts->name =~ /^\d+$/) { }
2559 0 0 if ($index == 1 * $self->opts->name)
2563 0 0 if (lc $descr eq lc $self->opts->name)
2573 0 0 ref $_ eq 'ARRAY' ? :
2584 0 0 if defined $filter and not &$filter($new_object)
2599 0 0 if ($_ =~ /\.(\d+)$/)
2616 0 0 if (exists $to_i->{$i})
2618 0 0 if $_ =~ /indices/