X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=dsa-nagios-nrpe-config%2Fdsa-check-hpacucli;h=ce0910e8760882c12c42e516198827195544ceeb;hb=34816cfa599726fb4d7c33e02091a14b22069312;hp=a3c42c742f6cce33c338415a77491f6fd5600823;hpb=972fb04e546e2f19403aae970c26a472599731ef;p=mirror%2Fdsa-nagios.git diff --git a/dsa-nagios-nrpe-config/dsa-check-hpacucli b/dsa-nagios-nrpe-config/dsa-check-hpacucli index a3c42c7..ce0910e 100755 --- a/dsa-nagios-nrpe-config/dsa-check-hpacucli +++ b/dsa-nagios-nrpe-config/dsa-check-hpacucli @@ -119,6 +119,8 @@ for my $slot (sort @controllers) { # Check that all drives have the proper transfer speed. # sometimes stuff breaks and they fall back to 10mb/sec. for my $drive (@drives) { + # skip drives that are known to have failed + next if (exists $status{'Failed'} && grep {$drive eq $_} @{$status{'Failed'}}); my $type; if ($drive =~ /^[0-9]+:[0-9]+$/) { # scsi drives $type = 'SCSI';