From dc139cfc324cc15e5c0bc8c7c7d81176b04b417d Mon Sep 17 00:00:00 2001 From: Longxiang Lyu <35479537+lolyu@users.noreply.github.com> Date: Tue, 25 Jul 2023 12:16:49 +0800 Subject: [PATCH] [monit][dualtor] Periodically check mux neighbors consistency (#15769) Signed-off-by: Longxiang Lyu --- 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 d653252075..482a992b6d 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/local/bin/route_check.py" every 5 cycles if status != 0 for 3 cycle then alert repeat every 1 cycles +# dualtor_neighbor_check.py: script to check if the neighbor entries in APPL_DB +# has correct neighbor or tunnel route entries in ASIC_DB based on the mux +# states. +check program dualtorNeighborCheck with path "/usr/local/bin/dualtor_neighbor_check.py -o SYSLOG -s ERROR" + 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 #