Franziska Kunsmann
40a9ac4523
All checks were successful
kunsi/bundlewrap/pipeline/head This commit looks good
14 lines
314 B
Bash
14 lines
314 B
Bash
#!/bin/bash
|
|
|
|
journal="$(journalctl --since '12 hours ago' --no-hostname _TRANSPORT=kernel | grep -iF 'out of memory' -C1)"
|
|
|
|
if [[ -n "$journal" ]]
|
|
then
|
|
echo "CRITICAL - OOM killer killed processes:"
|
|
echo
|
|
echo "$journal"
|
|
exit 2
|
|
else
|
|
echo "OK - No OOM kills found in last 12 hours"
|
|
exit 0
|
|
fi
|