]> arthur.barton.de Git - nagcollect.git/commitdiff
DiskErrors.tst: dont't assume "encoder error" as disk I/O error
authorAlexander Barton <alex@barton.de>
Thu, 15 Sep 2011 08:00:47 +0000 (10:00 +0200)
committerAlexander Barton <alex@barton.de>
Thu, 15 Sep 2011 08:00:47 +0000 (10:00 +0200)
client/lib/tests/Darwin/DiskErrors.tst

index 67075f42c44e0f1374694ffd8ae978a94ab007be..2d78773f26cf57a4541356def263e522e2a07f95 100644 (file)
@@ -13,7 +13,9 @@ 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 \
-        | grep -v "com.apple.mdworker.pool" | tail -n 1`
+        | grep -v "com.apple.mdworker.pool" \
+        | grep -v "encoder error" \
+        | tail -n 1`
 else
        # no reboot detected in system.log
        error=`LC_ALL=C grep -i "I/O" /var/log/system.log \