From: Peter Palfrader Date: Thu, 14 Oct 2010 15:07:46 +0000 (+0200) Subject: hpacucli: ignore output for unassigned disks X-Git-Url: https://wiki.adam-barratt.org.uk/gitweb/?a=commitdiff_plain;h=8a0b69628b3bf77fb2675cba99990e3f82ccad1d;p=mirror%2Fdsa-nagios.git hpacucli: ignore output for unassigned disks pd all show will list unassigned disks under an 'unassigned' heading - ignore that one now (patch by Emmanuel Lacour). --- diff --git a/dsa-nagios-checks/checks/dsa-check-hpacucli b/dsa-nagios-checks/checks/dsa-check-hpacucli index bf2fb17..2d02f59 100755 --- a/dsa-nagios-checks/checks/dsa-check-hpacucli +++ b/dsa-nagios-checks/checks/dsa-check-hpacucli @@ -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; diff --git a/dsa-nagios-checks/debian/changelog b/dsa-nagios-checks/debian/changelog index b7cd103..aaa6225 100644 --- a/dsa-nagios-checks/debian/changelog +++ b/dsa-nagios-checks/debian/changelog @@ -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 Sun, 03 Oct 2010 13:12:31 +0200 + -- Peter Palfrader Thu, 14 Oct 2010 17:07:29 +0200 dsa-nagios-checks (87) unstable; urgency=low