Don't get irritated by our own log messages
authorAlexander Barton <alex@barton.de>
Mon, 14 Dec 2009 12:56:25 +0000 (13:56 +0100)
committerAlexander Barton <alex@barton.de>
Mon, 14 Dec 2009 12:56:25 +0000 (13:56 +0100)
client/lib/tests/Disks.tst

index 0c0451c..297aae2 100644 (file)
@@ -3,7 +3,7 @@
 
 if [ `uname` = "Darwin" ]; then
        SERVICE="Disks_p"
-       error=`LC_ALL=C grep "I/O" /var/log/system.log | tail -n 1`
+       error=`LC_ALL=C grep "I/O" /var/log/system.log | grep -v nagcollect | tail -n 1`
        if [ -n "$error" ]; then
                msg=`echo $error | cut -d' ' -f6-`
                STATUS=2