mirror of
https://github.com/thomas-krenn/check_lsi_raid.git
synced 2026-02-25 13:18:41 +01:00
Skip consistency check on cachecade volumes
This commit is contained in:
@@ -374,13 +374,17 @@ sub getLogicalDeviceStatus {
|
||||
if ($VERBOSITY == 0) {$statusMessage .= "Virtual disk state not optimal, "; }
|
||||
if ($VERBOSITY >= 1) {$statusMessage .= "Virtual disk $output_dev state not optimal ($values[2]), "; }
|
||||
} else {
|
||||
$status = getExitState($status, STATE_CRITICAL);
|
||||
if ($VERBOSITY == 0) {$statusMessage .= "Virtual disk state not optimal - not consistant, "; }
|
||||
if ($VERBOSITY >= 1) {$statusMessage .= "Virtual disk $output_dev is not optimal - not consistant (state $values[2]), "; }
|
||||
# cachecade volumes cannot be checked for consistency
|
||||
if($values[4] ne "Yes" && $values[1] ne "Cac1"){
|
||||
$status = getExitState($status, STATE_CRITICAL);
|
||||
if ($VERBOSITY == 0) {$statusMessage .= "Virtual disk state not optimal - not consistant, "; }
|
||||
if ($VERBOSITY >= 1) {$statusMessage .= "Virtual disk $output_dev is not optimal - not consistant (state $values[2]), "; }
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if($values[4] ne "Yes") {
|
||||
# cachecade volumes cannot be checked for consistency
|
||||
if($values[4] ne "Yes" && $values[1] ne "Cac1"){
|
||||
$status = getExitState($status, STATE_WARNING);
|
||||
if ($VERBOSITY == 0) {$statusMessage .= "Virtual disk state optimal, but not consistent, "; }
|
||||
if ($VERBOSITY >= 1) {$statusMessage .= "Virtual disk $output_dev state optimal, but not consistent, "; }
|
||||
|
||||
Reference in New Issue
Block a user