Skip to content

Commit eda84d2

Browse files
Invoke disk check periodically (#7374)
Helps with periodic scan of disk for RO state. If found, this script makes transient fix and raise error message.
1 parent 5b88d9e commit eda84d2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ check program routeCheck with path "/usr/bin/route_check.py"
3131
every 5 cycles
3232
if status != 0 for 3 cycle then alert repeat every 1 cycles
3333

34+
# Check if /etc & /home are writable. If not, make them writable.
35+
# Raise syslog error message, in case of underlying issues
36+
#
37+
check program diskCheck with path "/usr/bin/disk_check.py"
38+
every 5 cycles
39+
if status != 0 for 3 cycle then alert repeat every 1 cycles
40+
3441
# vnet_route_check.py: tool that verifies VNET routes consistancy between SONiC and vendor SDK DBs.
3542
check program vnetRouteCheck with path "/usr/bin/vnet_route_check.py"
3643
every 5 cycles

0 commit comments

Comments
 (0)