Commit 9b381aff authored by Holger Levsen's avatar Holger Levsen

reproducible Debian: add node health check for too big jenkins.logs

Signed-off-by: Holger Levsen's avatarHolger Levsen <holger@layer-acht.org>
parent 36d88b06
......@@ -152,6 +152,20 @@ if [ "$HOSTNAME" = "$MAINNODE" ] ; then
DIRTY=true
echo
fi
#
# /var/log/jenkins/jenkins.log sometimes grows very fast
# and we don't yet know why, so let's monitor this for now.
JENKINSLOG="find /var/log/jenkins -name jenkins.log -size +42G"
if [ -z "JENKINSLOG" ] ; then
echo "Warning, jenkins.log is larger than 42G, please fix, erroring out now."
exit 1
else
JENKINSLOG="find /var/log/jenkins -name jenkins.log -size +23G"
if [ -z "JENKINSLOG" ] ; then
echo "Warning, jenkins.log is larger than 23G, please do something…"
DIRTY=true
fi
fi
fi
......
......@@ -25,4 +25,6 @@ warning /Warning, today is the wrong future:.+/
warning /Warning: curl http:..www.debian.org failed, probably the proxy is down for.+/
warning /Warning, more than one kernel in.+/
warning /Warning, rise of the jenkins job zombies.+/
warning /Warning, jenkins.log is larger than.+/
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment