Skip to content

Commit

Permalink
Invoke disk check periodically. (#7374)
Browse files Browse the repository at this point in the history
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 authored and yxieca committed May 27, 2021
1 parent 5d29a2c commit 53b3d37
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 @@ -31,5 +31,12 @@ check program routeCheck with path "/usr/local/bin/route_check.py"
every 5 cycles
if status != 0 for 3 cycle then alert repeat every 1 cycles

# 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"
every 5 cycles
if status != 0 for 3 cycle then alert repeat every 1 cycles

check program container_checker with path "/usr/bin/container_checker"
if status != 0 for 5 times within 5 cycles then alert repeat every 1 cycles

0 comments on commit 53b3d37

Please sign in to comment.