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=9b1b2c7456316af85a8efa8b27e1a684b239c986;hp=e2d2ce990713f90b5be75c55e1c05ba14eb5a2bb;hb=901e26f52db8d0916b6808f06151512db2231fdf;hpb=eafbc117dc3d950474cd5af971d839541557a457;ds=sidebyside 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 \