mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 15:54:29 +02:00
minor fixes
Former-commit-id: 51a2308e80a85c5a099410c5883c9b389d3a74ab
This commit is contained in:
parent
ec5c9d7c27
commit
f979af0735
@ -216,7 +216,7 @@ sub new {
|
|||||||
$self->{'snmp_security_level'} = '';
|
$self->{'snmp_security_level'} = '';
|
||||||
|
|
||||||
# Disable SNMP scans if no community was given.
|
# Disable SNMP scans if no community was given.
|
||||||
if (scalar(@{$self->{'communities'}}) == 0) {
|
if (ref($self->{'communities'}) ne "ARRAY" || scalar(@{$self->{'communities'}}) == 0) {
|
||||||
$self->{'snmp_enabled'} = 0;
|
$self->{'snmp_enabled'} = 0;
|
||||||
$self->call('message', "There is not any SNMP community configured.", 5);
|
$self->call('message', "There is not any SNMP community configured.", 5);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user