check for oom kill only in the last 24 hours

Signed-off-by: reyesj2 <94730068+reyesj2@users.noreply.github.com>
This commit is contained in:
reyesj2
2025-09-19 11:32:13 -05:00
parent c9db52433f
commit d03dd7ac2d

View File

@@ -271,7 +271,7 @@ done
# Look for OOM specific errors in /var/log/messages which can lead to odd behavior / test failures
if [[ -f /var/log/messages ]]; then
status "Checking log file /var/log/messages"
if cat /var/log/messages | grep -iE 'out of memory|oom-kill'; then
if journalctl --since "24 hours ago" | grep -iE 'out of memory|oom-kill'; then
RESULT=1
fi
fi