minor fixes H&D

Former-commit-id: a4ffc2e761dc0a4d06209fb1c448bc17d5d45022
This commit is contained in:
fbsanchez 2019-02-15 16:06:28 +01:00
parent 45fd528e38
commit 7a1b66755d
1 changed files with 1 additions and 1 deletions

View File

@ -1501,7 +1501,7 @@ sub snmp_get_command {
my $command = "snmpwalk -M/dev/null -r$self->{'snmp_checks'} -t$self->{'snmp_timeout'} -v$self->{'snmp_version'} -On -Oe ";
if ($self->{'snmp_version'} eq "3") {
if ($self->{'community'}) { # Context
$command .= " -N $self->{'community} ";
$command .= " -N $self->{'community'} ";
}
$command .= " -l$self->{'snmp_security_level'} ";
if ($self->{'snmp_security_level'} ne "noAuthNoPriv") {