[project @ peter@palfrader.org-20080924140318-7urfd3evu4g40uv4]
authorPeter Palfrader <peter@palfrader.org>
Wed, 24 Sep 2008 14:03:18 +0000 (16:03 +0200)
committerPeter Palfrader <peter@palfrader.org>
Wed, 24 Sep 2008 14:03:18 +0000 (16:03 +0200)
dsa-check-hpacucli: Do not inspect drives in detail when they are listed as
Failed in the overview already.

dsa-nagios-nrpe-config/debian/changelog
dsa-nagios-nrpe-config/dsa-check-hpacucli

index 79d2795..ffa4b73 100644 (file)
@@ -1,3 +1,10 @@
+dsa-nagios-nrpe-config (57) unstable; urgency=low
+
+  * dsa-check-hpacucli: Do not inspect drives in detail when they are
+    listed as Failed in the overview already.
+
+ -- Peter Palfrader <weasel@debian.org>  Wed, 24 Sep 2008 16:02:31 +0200
+
 dsa-nagios-nrpe-config (56) unstable; urgency=low
 
   * fix dsa-check-samhain.
index a3c42c7..4ee5bbe 100755 (executable)
@@ -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 (grep {$drive eq $_} @{$status{'Failed'}});
                my $type;
                if ($drive =~ /^[0-9]+:[0-9]+$/) { # scsi drives
                        $type = 'SCSI';