diff --git a/files/image_config/monit/conf.d/sonic-host b/files/image_config/monit/conf.d/sonic-host index 5a67f7a990..fead24dc31 100644 --- a/files/image_config/monit/conf.d/sonic-host +++ b/files/image_config/monit/conf.d/sonic-host @@ -20,3 +20,10 @@ check process rsyslog with pidfile /var/run/rsyslogd.pid start program = "/bin/systemctl start rsyslog.service" stop program = "/bin/systemctl stop rsyslog.service" if totalmem > 800 MB for 10 times within 20 cycles then restart + +# Check if /etc & /home are writable. If not, make them writable. +# Raise syslog error message, in case of underlying issues +# +check program diskCheck with path "/usr/local/bin/disk_check.py" + if status != 0 then alert +