From 389595ae4c672be5e8a69fef82c0c7d28a07958c Mon Sep 17 00:00:00 2001 From: Colin Gagnaire Date: Thu, 30 Apr 2020 15:48:11 +0200 Subject: [PATCH] fix snmp discovery desc --- os/linux/local/mode/discoverysnmp.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/os/linux/local/mode/discoverysnmp.pm b/os/linux/local/mode/discoverysnmp.pm index 65432577f..eb0b4786b 100644 --- a/os/linux/local/mode/discoverysnmp.pm +++ b/os/linux/local/mode/discoverysnmp.pm @@ -84,6 +84,7 @@ my $lookup_type = [ { type => 'stonesoft', re => qr/Forcepoint/i }, { type => 'redback', re => qr/Redback/i }, { type => 'palo alto', re => qr/Palo Alto/i }, + { type => 'hp procurve', re => qr/HP.*Switch/i }, { type => 'hp procurve', re => qr/HP ProCurve/i }, { type => 'hp standard', re => qr/HPE Comware/i }, { type => 'hp msl', re => qr/HP MSL/i }, @@ -152,6 +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{ip} = $ip->addr; $host{hostname} = $result->{$self->{oid_sysName}}; $host{snmp_version} = $last_version;