From 6d406eae05414c0f4898e7b8e11bdd7245c15f3d Mon Sep 17 00:00:00 2001 From: "Zane C. Bowers-Hadley" Date: Tue, 30 Jul 2024 13:29:59 -0500 Subject: [PATCH] snmp/samba: for generic vars, ensure we have a value (#544) --- snmp/samba | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/snmp/samba b/snmp/samba index 418335974..f3c6428c8 100755 --- a/snmp/samba +++ b/snmp/samba @@ -339,7 +339,9 @@ foreach my $line (@profiling_lines) { } } ## end else [ if ( $line_split[0] =~ /read/ || $line_split...)] } else { - $data->{general}{ $line_split[0] } = $line_split[1]; + if (defined($line_split[1])) { + $data->{general}{ $line_split[0] } = $line_split[1]; + } } } ## end if ( $line_split[1] =~ /^[0-9]+$/ ) } ## end foreach my $line (@profiling_lines)