]> arthur.barton.de Git - nagcollect.git/commitdiff
DiskErrors.tst: exclude false positive I/O error of mdworker
authorAlexander Barton <alex@barton.de>
Wed, 24 Aug 2011 08:33:00 +0000 (10:33 +0200)
committerAlexander Barton <alex@barton.de>
Wed, 24 Aug 2011 08:33:00 +0000 (10:33 +0200)
client/lib/tests/Darwin/DiskErrors.tst

index 9b1b2c7456316af85a8efa8b27e1a684b239c986..67075f42c44e0f1374694ffd8ae978a94ab007be 100644 (file)
@@ -1,5 +1,5 @@
 # NagCollect -- Nagios Data Collector for Passive Checks
-# Copyright (c)2010 Alexander Barton, alex@barton.de
+# Copyright (c)2010-2011 Alexander Barton, alex@barton.de
 
 # Check disks for I/O errors
 
@@ -12,7 +12,8 @@ offset=`LC_ALL=C grep -b "BOOT_TIME:" /var/log/system.log \
 if [ -n "$offset" ]; then
        # reboot detected in system.log
        error=`LC_ALL=C tail -c "+$offset" /var/log/system.log \
-        | grep -i "I/O" | grep -i error | grep -v nagcollect | tail -n 1`
+        | grep -i "I/O" | grep -i error | grep -v nagcollect \
+        | grep -v "com.apple.mdworker.pool" | tail -n 1`
 else
        # no reboot detected in system.log
        error=`LC_ALL=C grep -i "I/O" /var/log/system.log \