hpacucli: ignore output for unassigned disks
authorPeter Palfrader <peter@palfrader.org>
Thu, 14 Oct 2010 15:07:46 +0000 (17:07 +0200)
committerPeter Palfrader <peter@palfrader.org>
Thu, 14 Oct 2010 15:07:46 +0000 (17:07 +0200)
pd all show will list unassigned disks under an 'unassigned' heading -
ignore that one now (patch by Emmanuel Lacour).

dsa-nagios-checks/checks/dsa-check-hpacucli
dsa-nagios-checks/debian/changelog

index bf2fb17..2d02f59 100755 (executable)
@@ -108,6 +108,7 @@ for my $slot (sort @controllers) {
                next if /^$/;
                next if (/^\S.*in Slot $slot/);
                next if /^ *array [A-Z]$/;
+               next if /^ *unassigned/;
                if (/^ *(array [A-Z]) \(Failed\)$/) {
                        record('CRITICAL');
                        push @{$status{'Failed'}}, $1;
index b7cd103..aaa6225 100644 (file)
@@ -9,8 +9,10 @@ dsa-nagios-checks (8x) xnstable; urgency=low
     complain nicely if it isn't instead of falling over. [Uli Martens]
   * dsa-check-afs-*: add checks from Russ Allbery for monitoring our AFS
   * Add dsa-check-port-closed.
+  * dsa-check-hpacucli: ignore the line for unassigned disks (patch by
+    Emmanuel Lacour).
 
- -- Peter Palfrader <weasel@debian.org>  Sun, 03 Oct 2010 13:12:31 +0200
+ -- Peter Palfrader <weasel@debian.org>  Thu, 14 Oct 2010 17:07:29 +0200
 
 dsa-nagios-checks (87) unstable; urgency=low