From acf1c14f041700d5f7ecf81fa2956efc6ec46850 Mon Sep 17 00:00:00 2001 From: Colin Gagnaire Date: Thu, 30 Apr 2020 15:49:18 +0200 Subject: [PATCH] fix snmp discovery desc --- os/linux/local/mode/discoverysnmp.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os/linux/local/mode/discoverysnmp.pm b/os/linux/local/mode/discoverysnmp.pm index eb0b4786b..ca661460b 100644 --- a/os/linux/local/mode/discoverysnmp.pm +++ b/os/linux/local/mode/discoverysnmp.pm @@ -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;