Skip to content

Commit 162e9b6

Browse files
qiluo-msftlguohan
authored andcommitted
Add monit for /var/log disk usage (#1836)
Signed-off-by: Qi Luo <[email protected]>
1 parent 78ed06d commit 162e9b6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

build_debian.sh

+2
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,8 @@ sudo sed -i '
269269
sudo tee -a $FILESYSTEM_ROOT/etc/monit/monitrc > /dev/null <<'EOF'
270270
check filesystem root-aufs with path /
271271
if space usage > 90% for 5 times within 10 cycles then alert
272+
check filesystem var-log with path /var/log
273+
if space usage > 90% for 5 times within 10 cycles then alert
272274
check system $HOST
273275
if memory usage > 90% for 5 times within 10 cycles then alert
274276
if cpu usage (user) > 90% for 5 times within 10 cycles then alert

0 commit comments

Comments
 (0)