X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=nagcollect.git;a=blobdiff_plain;f=client%2Flib%2Ftests%2FRAID.tst;fp=client%2Flib%2Ftests%2FRAID.tst;h=d814588d4f83dd27316e8e84b84d97502850f525;hp=074113d65c648164268c1f200687a88ac5b3054e;hb=d4811465f8a6af9d6afe93d8092ed83794294ce8;hpb=c2c0bb4205d7f6ee019388771dfeadafa65f015d 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