mirror of
https://github.com/thomas-krenn/check_lsi_raid.git
synced 2026-02-24 12:48:42 +01:00
Fix regex for CV status
This commit is contained in:
@@ -768,16 +768,16 @@ sub getCVStatus {
|
||||
next;
|
||||
}
|
||||
if(defined($currBlock)){
|
||||
if($currBlock eq 'Cachevault_Info' && $line =~ '^State'){
|
||||
$line =~ /([a-zA-Z0-9]*)$/;
|
||||
if($currBlock eq 'Cachevault_Info' && $line =~ /^State/){
|
||||
$line =~ /([a-zA-Z0-9]*) $/;
|
||||
if($1 ne "Optimal") {
|
||||
$status = getExitState($status, STATE_WARNING);
|
||||
if($VERBOSITY == 0){$statusMessage .= "CV state not optimal, ";}
|
||||
if($VERBOSITY >= 1){$statusMessage .= "CV Cachevault_Info state $1, "; }
|
||||
}
|
||||
}
|
||||
elsif($currBlock eq 'Firmware_Status' && $line =~ '^Replacement required'){
|
||||
$line =~ /([a-zA-Z0-9]*)$/;
|
||||
elsif($currBlock eq 'Firmware_Status' && $line =~ /^Replacement required/){
|
||||
$line =~ /([a-zA-Z0-9]*) $/;
|
||||
if($1 ne "No") {
|
||||
$status = getExitState($status, STATE_WARNING);
|
||||
$statusMessage .= "CV replacement required, ";
|
||||
|
||||
Reference in New Issue
Block a user