Skip to content

Commit 2cdec36

Browse files
kapouikPhilippe Beaumont
andauthored
add areca support for multi device (#112)
Co-authored-by: Philippe Beaumont <philippe.beaumont@nfrance.com>
1 parent 27341d9 commit 2cdec36

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

check_smart.pl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,12 @@
187187
$interface .= "usbjmicron," . $k . "|";
188188
}
189189
}
190+
elsif($interface =~ m/areca,\[(\d{1,2})-(\d{1,2})\]/) {
191+
$interface = "";
192+
for(my $k = $1; $k <= $2; $k++) {
193+
$interface .= "areca," . $k . "|";
194+
}
195+
}
190196
else {
191197
$interface .= "|";
192198
}
@@ -280,7 +286,7 @@
280286
# we had a pattern based on $opt_g
281287
$tag = $device;
282288
$tag =~ s/\Q$opt_g\E//;
283-
if($interface =~ qr/(?:megaraid|3ware|aacraid|cciss)/){
289+
if($interface =~ qr/(?:megaraid|3ware|aacraid|cciss|areca)/){
284290
$label = "[$interface] - ";
285291
} else {
286292
$label = "[$device] - ";

0 commit comments

Comments
 (0)