]> arthur.barton.de Git - nagcollect.git/commitdiff
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 0c0451cb2e5be1614b538b9ed1b593266592692b..297aae2765cf06fe7a81d2c467ddc8d4766002c8 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