From 162e9b6f56dcf9e76fa999d783d6fb7574b066b0 Mon Sep 17 00:00:00 2001 From: Qi Luo Date: Tue, 3 Jul 2018 17:00:31 -0700 Subject: [PATCH] Add monit for /var/log disk usage (#1836) Signed-off-by: Qi Luo --- build_debian.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build_debian.sh b/build_debian.sh index c960a3946c..767dd7b83b 100755 --- a/build_debian.sh +++ b/build_debian.sh @@ -269,6 +269,8 @@ sudo sed -i ' sudo tee -a $FILESYSTEM_ROOT/etc/monit/monitrc > /dev/null <<'EOF' check filesystem root-aufs with path / if space usage > 90% for 5 times within 10 cycles then alert +check filesystem var-log with path /var/log + if space usage > 90% for 5 times within 10 cycles then alert check system $HOST if memory usage > 90% for 5 times within 10 cycles then alert if cpu usage (user) > 90% for 5 times within 10 cycles then alert