From eda84d220986ed19919c02a352c559d056a7a1ca Mon Sep 17 00:00:00 2001 From: Renuka Manavalan <47282725+renukamanavalan@users.noreply.github.com> Date: Fri, 19 Nov 2021 16:45:21 -0800 Subject: [PATCH] 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. --- files/image_config/monit/conf.d/sonic-host | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/files/image_config/monit/conf.d/sonic-host b/files/image_config/monit/conf.d/sonic-host index 083b5ee1efe5..a261ce4a65db 100644 --- a/files/image_config/monit/conf.d/sonic-host +++ b/files/image_config/monit/conf.d/sonic-host @@ -31,6 +31,13 @@ check program routeCheck with path "/usr/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/bin/disk_check.py" + every 5 cycles + if status != 0 for 3 cycle then alert repeat every 1 cycles + # vnet_route_check.py: tool that verifies VNET routes consistancy between SONiC and vendor SDK DBs. check program vnetRouteCheck with path "/usr/bin/vnet_route_check.py" every 5 cycles