]> arthur.barton.de Git - nagcollect.git/commitdiff
RAID.tst: suppress warning and error messages
authorAlexander Barton <alex@barton.de>
Tue, 15 Nov 2011 10:58:05 +0000 (11:58 +0100)
committerAlexander Barton <alex@barton.de>
Tue, 15 Nov 2011 10:58:05 +0000 (11:58 +0100)
client/lib/tests/RAID.tst

index 074113d65c648164268c1f200687a88ac5b3054e..d814588d4f83dd27316e8e84b84d97502850f525 100644 (file)
@@ -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