Skip to content

Commit 52366b0

Browse files
[201811] Invoke disk check periodically (#8951)
* Invoke disk check periodically. (#7374) Why I did it Helps with periodic scan of disk for RO state. If found, this script makes transient fix and raise error message.
1 parent e302561 commit 52366b0

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

files/image_config/monit/conf.d/sonic-host

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,10 @@ check process rsyslog with pidfile /var/run/rsyslogd.pid
2020
start program = "/bin/systemctl start rsyslog.service"
2121
stop program = "/bin/systemctl stop rsyslog.service"
2222
if totalmem > 800 MB for 10 times within 20 cycles then restart
23+
24+
# Check if /etc & /home are writable. If not, make them writable.
25+
# Raise syslog error message, in case of underlying issues
26+
#
27+
check program diskCheck with path "/usr/local/bin/disk_check.py"
28+
if status != 0 then alert
29+

0 commit comments

Comments
 (0)