Skip to content

Commit

Permalink
[201811] Invoke disk check periodically (#8951)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
renukamanavalan committed Oct 16, 2021
1 parent e302561 commit 52366b0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions files/image_config/monit/conf.d/sonic-host
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 52366b0

Please sign in to comment.