X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=dsa-nagios-checks%2Fchecks%2Fdsa-check-hpssacli;h=3dfd4880c73eafc88be9f4d5a994a96b4fe15a83;hb=4226c5a9c546019111121c43ab799009cf789f52;hp=8ae712101b79afac7034cdd70d80a9083d82fa25;hpb=7c178a2dd545f72946bd4fb15756301322e5a591;p=mirror%2Fdsa-nagios.git diff --git a/dsa-nagios-checks/checks/dsa-check-hpssacli b/dsa-nagios-checks/checks/dsa-check-hpssacli index 8ae7121..3dfd488 100755 --- a/dsa-nagios-checks/checks/dsa-check-hpssacli +++ b/dsa-nagios-checks/checks/dsa-check-hpssacli @@ -180,6 +180,12 @@ for my $slot (sort @controllers) { next if (/^\S.*in Slot $slot/); next if /^ *array [A-Z]$/; next if /^ *unassigned/; + if (/^ *HBA Drives/) { + # HBA mode implies no logical drives, thus reset the "drives found" check and proceed with + # checking physical drives. + $nodrives = 0; + next; + } if (/^ *(array [A-Z]) \(Failed\)$/) { record('CRITICAL'); push @{$status{'Failed'}}, $1;