fix snmp discovery desc

This commit is contained in:
Colin Gagnaire 2020-04-30 15:49:18 +02:00 committed by Lotfi zaouche
parent a5aa4452c5
commit acf1c14f04
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ sub run {
my %host;
$host{type} = $self->define_type(desc => $result->{$self->{oid_sysDescr}});
$host{desc} = $result->{$self->{oid_sysDescr}};
$edge{desc} =~ s/\n/ /g if (defined($edge{desc}));
$host{desc} =~ s/\n/ /g if (defined($host{desc}));
$host{ip} = $ip->addr;
$host{hostname} = $result->{$self->{oid_sysName}};
$host{snmp_version} = $last_version;