From: Alexander Barton Date: Tue, 9 Aug 2011 14:57:08 +0000 (+0200) Subject: RAID.tst: report OK even if there is only 1 good Apple-HW-RAID volume ... X-Git-Tag: rel-3~14 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=nagcollect.git;a=commitdiff_plain;h=2cc4c245f51339cfaf3c5497b15550b6288b4b19 RAID.tst: report OK even if there is only 1 good Apple-HW-RAID volume ... --- diff --git a/client/lib/tests/RAID.tst b/client/lib/tests/RAID.tst index e67c5ad..53c57b2 100644 --- a/client/lib/tests/RAID.tst +++ b/client/lib/tests/RAID.tst @@ -34,7 +34,7 @@ if [ `uname` = "Darwin" ]; then || status="$v:$s" [ "$s" = "Good" ] && good=$good+1 || bad=bad+1 done <"$tmp" - if [ $bad -eq 0 -a $good -gt 1 ]; then + if [ $bad -eq 0 -a $good -ge 1 ]; then STATUS=0 TEXT="OK - HW-RAID is good: $status" elif [ $bad -gt 0 ]; then