| line |
!l |
l&&!r |
l&&r |
condition |
|
49
|
0 |
0 |
0 |
$self->opts->community and $self->opts->community =~ /^snmpv3(.)(.+)/ |
|
53
|
0 |
0 |
0 |
defined $authprotocol and $authprotocol |
|
55
|
0 |
0 |
0 |
defined $authpassword and $authpassword |
|
57
|
0 |
0 |
0 |
defined $privprotocol and $privprotocol |
|
59
|
0 |
0 |
0 |
defined $privpassword and $privpassword |
|
61
|
0 |
0 |
0 |
defined $username and $username |
|
63
|
0 |
0 |
0 |
defined $contextengineid and $contextengineid |
|
65
|
0 |
0 |
0 |
defined $contextname and $contextname |
|
70
|
0 |
0 |
0 |
$self->opts->authpassword || $self->opts->authprotocol || $self->opts->privpassword || $self->opts->privprotocol and $self->opts->protocol ne '3' |
|
75
|
0 |
0 |
0 |
$self->opts->community2 and $self->opts->community2 =~ /^snmpv3(.)(.+)/ |
|
86
|
0 |
0 |
0 |
defined $authprotocol and $authprotocol |
|
88
|
0 |
0 |
0 |
defined $authpassword and $authpassword |
|
90
|
0 |
0 |
0 |
defined $privprotocol and $privprotocol |
|
92
|
0 |
0 |
0 |
defined $privpassword and $privpassword |
|
94
|
0 |
0 |
0 |
defined $username and $username |
|
96
|
0 |
0 |
0 |
defined $contextengineid and $contextengineid |
|
98
|
0 |
0 |
0 |
defined $contextname and $contextname |
|
260
|
0 |
0 |
0 |
$self->opts->snmpwalk and $self->opts->hostname |
|
|
0 |
0 |
0 |
not $self->opts->snmpwalk and $self->opts->hostname |
|
284
|
0 |
0 |
0 |
$self->opts->snmpwalk and not $self->opts->hostname |
|
|
0 |
0 |
0 |
$self->opts->snmpwalk and $self->opts->hostname |
|
334
|
0 |
0 |
0 |
not $timedout and @trees |
|
391
|
0 |
0 |
0 |
$self->opts->name and -f $self->opts->name |
|
|
0 |
0 |
0 |
$self->opts->name and not -f $self->opts->name |
|
787
|
0 |
0 |
0 |
$self->opts->protocol eq '1' and $mibinfo->[2] ne 'v1' |
|
788
|
0 |
0 |
0 |
$self->opts->protocol ne '1' and $mibinfo->[2] eq 'v1' |
|
802
|
0 |
0 |
0 |
substr($_, 0, length $Monitoring::GLPlugin::SNMP::MibsAndOids::mib_ids->{$mib}) eq $Monitoring::GLPlugin::SNMP::MibsAndOids::mib_ids->{$mib} and substr($_, length $Monitoring::GLPlugin::SNMP::MibsAndOids::mib_ids->{$mib}, 1) ne '.' |
|
892
|
0 |
0 |
0 |
defined $self->opts->offline and $self->opts->mode ne 'walk' |
|
958
|
0 |
0 |
0 |
defined $hrSystemUptime and $hrSystemUptime =~ /^\d+$/ |
|
|
0 |
0 |
0 |
defined $hrSystemUptime and $hrSystemUptime =~ /^\d+$/ and $hrSystemUptime > 0 |
|
966
|
0 |
0 |
0 |
defined $snmpEngineTime and $snmpEngineTime =~ /^\d+$/ |
|
|
0 |
0 |
0 |
defined $snmpEngineTime and $snmpEngineTime =~ /^\d+$/ and $snmpEngineTime > 0 |
|
982
|
0 |
0 |
0 |
defined $sysUptime and defined $sysDescr |
|
993
|
0 |
0 |
0 |
$snmpEngineTime and $snmpEngineTime > $hrSystemUptime |
|
1112
|
0 |
0 |
0 |
$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 |
|
1153
|
0 |
0 |
0 |
defined $self->opts->community2 and $self->decode_password($self->opts->community2) ne $self->decode_password($self->opts->community) |
|
1231
|
0 |
0 |
0 |
$sysobj and $oid eq $sysobj |
|
1286
|
0 |
0 |
0 |
$sysobj and $sysobj eq $Monitoring::GLPlugin::SNMP::MibsAndOids::mib_ids->{$mib} |
|
1290
|
0 |
0 |
0 |
$sysobj and $Monitoring::GLPlugin::SNMP::MibsAndOids::mib_ids->{$mib} eq substr($sysobj, 0, length $Monitoring::GLPlugin::SNMP::MibsAndOids::mib_ids->{$mib}) |
|
1327
|
0 |
0 |
0 |
$traces and not exists $$traces{$Monitoring::GLPlugin::SNMP::MibsAndOids::mib_ids->{$mib}} |
|
|
0 |
0 |
0 |
$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;} |
|
1395
|
0 |
0 |
0 |
$self->opts->snmpwalk and not $self->opts->hostname |
|
1446
|
0 |
0 |
0 |
$force == -1 and -f $statefile |
|
1534
|
0 |
0 |
0 |
exists $Monitoring::GLPlugin::SNMP::tablecache->{$mib} && exists $Monitoring::GLPlugin::SNMP::tablecache->{$mib}{$table} |
|
1539
|
0 |
0 |
0 |
defined $filter and not &$filter($new_object) |
|
1546
|
0 |
0 |
0 |
defined $filter and not &$filter($new_object) |
|
1593
|
0 |
0 |
0 |
exists $Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{$mib} and exists $Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{$mib}{$definition} |
|
1607
|
0 |
0 |
0 |
$table and exists $Monitoring::GLPlugin::SNMP::tablecache->{$mib} |
|
1622
|
0 |
0 |
0 |
exists $Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{$mib} and exists $Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{$mib}{$mo} |
|
1693
|
0 |
0 |
0 |
exists $Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{$mib} and exists $Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{$mib}{$table} |
|
1706
|
0 |
0 |
0 |
scalar @{$indices;} == 1 and $indices->[0] == -1 |
|
1852
|
0 |
0 |
0 |
not $self->opts->snmpwalk and scalar @notcached > 0 |
|
1881
|
0 |
0 |
0 |
defined $result->{$key} and $result->{$key} ne 'noSuchInstance' |
|
2004
|
0 |
0 |
0 |
scalar @{$params{'-columns'};} < 5 and $params{'-endindex'} |
|
|
0 |
0 |
0 |
scalar @{$params{'-columns'};} < 5 and $params{'-endindex'} and $params{'-startindex'} eq $params{'-endindex'} |
|
2016
|
0 |
0 |
0 |
defined $params{'-endindex'} and defined $params{'-startindex'} |
|
2025
|
0 |
0 |
0 |
not $result and defined $params{'-startindex'} |
|
|
0 |
0 |
0 |
not $result and defined $params{'-startindex'} and not $params{'-startindex'} =~ /\./ |
|
2193
|
0 |
0 |
0 |
exists $params{'-maxrepetitions'} and $params{'-maxrepetitions'} > 1 |
|
2232
|
0 |
0 |
0 |
exists $Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{$mib} and exists $Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{$mib}{$mo} |
|
2242
|
0 |
0 |
0 |
defined $result && defined $result->{$oid} |
|
2286
|
0 |
0 |
0 |
not wantarray and ref \$result eq 'SCALAR' |
|
|
0 |
0 |
0 |
not wantarray and ref \$result eq 'SCALAR' and ref \$indices eq 'SCALAR' |
|
2339
|
0 |
0 |
0 |
exists $Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{$mib} and exists $Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{$mib}{$definition} |
|
|
0 |
0 |
0 |
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 |
0 |
exists $Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{$mib} and exists $Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{$mib}{$definition} |
|
|
0 |
0 |
0 |
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' |
|
|
0 |
0 |
0 |
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 |
0 |
@{$indices;} and scalar @{$indices;} == 1 |
|
|
0 |
0 |
0 |
@{$indices;} and scalar @{$indices;} == 1 and not defined $indices->[0][0] |
|
2379
|
0 |
0 |
0 |
exists $Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{$mib} and exists $Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{$mib}{$definition} |
|
|
0 |
0 |
0 |
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 |
0 |
exists $Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{$mib} and exists $Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{$mib}{$definition} |
|
|
0 |
0 |
0 |
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' |
|
|
0 |
0 |
0 |
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}} |
|
2494
|
0 |
0 |
0 |
$_->[0] == $element[0] and $_->[1] == $element[1] |
|
2498
|
0 |
0 |
0 |
$_->[0] == $element[0] and $_->[1] == $element[1] |
|
|
0 |
0 |
0 |
$_->[0] == $element[0] and $_->[1] == $element[1] and $_->[2] == $element[2] |
|
2584
|
0 |
0 |
0 |
defined $filter and not &$filter($new_object) |