mirror of
https://github.com/thomas-krenn/check_lsi_raid.git
synced 2026-10-29 11:01:32 +01:00
Change regex for check_lsi_raid
Change regex on "Failure 46" for check_lsi_raid to work with last storcli client (Ver 1.21.06)
This commit is contained in:
1 parent
a17cf6e84f
commit
901fb8a4b8
1 file changed
+1
-1
+1
-1
@@ -195,7 +195,7 @@ sub checkCommandStatus{
|
||||
if($line eq "Status = Success\n"){
|
||||
return 1;
|
||||
}
|
||||
elsif (grep { /Failure\s+46/i } @output){
|
||||
elsif (grep { /Fail(ed|ure)\s+46/i } @output){
|
||||
# Return 46 means a drive is not attached, this is a valid failure
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user