From 901e26f52db8d0916b6808f06151512db2231fdf Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Wed, 21 Apr 2010 14:07:23 +0200 Subject: [PATCH] Add support for nagcollectreset to tests/Darwin/DiskErrors.tst --- client/lib/tests/Darwin/DiskErrors.tst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/lib/tests/Darwin/DiskErrors.tst b/client/lib/tests/Darwin/DiskErrors.tst index e2d2ce9..9b1b2c7 100644 --- a/client/lib/tests/Darwin/DiskErrors.tst +++ b/client/lib/tests/Darwin/DiskErrors.tst @@ -7,6 +7,8 @@ SERVICE="Disks_p" offset=`LC_ALL=C grep -b "BOOT_TIME:" /var/log/system.log \ | tail -n 1 | cut -d':' -f1` +[ -n "$offset" ] || offset=`LC_ALL=C grep -b -- --NagiosReset-- \ + /var/log/system.log | tail -n 1 | cut -d':' -f1` if [ -n "$offset" ]; then # reboot detected in system.log error=`LC_ALL=C tail -c "+$offset" /var/log/system.log \ -- 2.39.2