From: Alexander Barton Date: Tue, 15 Nov 2011 10:58:05 +0000 (+0100) Subject: RAID.tst: suppress warning and error messages X-Git-Tag: rel-3~3^2~9 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=nagcollect.git;a=commitdiff_plain;h=d4811465f8a6af9d6afe93d8092ed83794294ce8;hp=c2c0bb4205d7f6ee019388771dfeadafa65f015d RAID.tst: suppress warning and error messages --- diff --git a/client/lib/tests/RAID.tst b/client/lib/tests/RAID.tst index 074113d..d814588 100644 --- a/client/lib/tests/RAID.tst +++ b/client/lib/tests/RAID.tst @@ -5,7 +5,7 @@ SERVICE="RAID_p" if [ `uname` = "Darwin" ]; then tmp=`mktemp "/tmp/$$.XXXX"` - LC_ALL=C diskutil checkRAID >"$tmp" + LC_ALL=C diskutil checkRAID >"$tmp" 2>/dev/null if [ $? -eq 0 ]; then # Apple Software-RAID detected statusString1=`grep "^Status:" "$tmp" | uniq` @@ -20,7 +20,7 @@ if [ `uname` = "Darwin" ]; then TEXT="OK - RAID status is good." fi fi - LC_ALL=C raidutil list status | grep "RAID " >"$tmp" + LC_ALL=C raidutil list status 2>/dev/null | grep "RAID " >"$tmp" if [ $? -eq 0 ]; then # Apple Hardware-RAID detected declare -i good=0