X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=nagcollect.git;a=blobdiff_plain;f=client%2Flib%2Ftests%2FDarwin%2FDiskErrors.tst;h=67075f42c44e0f1374694ffd8ae978a94ab007be;hp=9b1b2c7456316af85a8efa8b27e1a684b239c986;hb=dec1e350c655f6e0d8e1f8cfb6b063c18d51a7ee;hpb=2cc4c245f51339cfaf3c5497b15550b6288b4b19 diff --git a/client/lib/tests/Darwin/DiskErrors.tst b/client/lib/tests/Darwin/DiskErrors.tst index 9b1b2c7..67075f4 100644 --- a/client/lib/tests/Darwin/DiskErrors.tst +++ b/client/lib/tests/Darwin/DiskErrors.tst @@ -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 \