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 \