diff --git a/os/linux/local/mode/discoverysnmp.pm b/os/linux/local/mode/discoverysnmp.pm index 1d26863e4..b872f8f6a 100644 --- a/os/linux/local/mode/discoverysnmp.pm +++ b/os/linux/local/mode/discoverysnmp.pm @@ -99,6 +99,7 @@ my $lookup_type = [ sub define_type { my ($self, %options) = @_; + return "unknown" unless (defined($options{desc}) && $options{desc} ne ''); foreach (@$lookup_type) { if ($options{desc} =~ /$_->{re}/) { return $_->{type};