mirror of
https://github.com/opinkerfi/nagios-plugins.git
synced 2026-02-05 22:55:17 +01:00
check_snmp_interfaces - empty interfaces make plugin broken, do they that they are.
This commit is contained in:
@@ -230,6 +230,10 @@ foreach my $key ( keys %$resultat) {
|
||||
|
||||
#$index = 1;
|
||||
#while ( $index <= $number_of_interfaces ) {
|
||||
|
||||
# Weed out empty entries
|
||||
@keys = grep(!/^$/, @keys);
|
||||
|
||||
foreach $index ( @keys ) {
|
||||
my $target_interface_index = $index;
|
||||
$oid_temp = $oid_ifdescr . $index;
|
||||
|
||||
Reference in New Issue
Block a user