From 0b16ca4ae9be818dd252df201640c04b67d6a491 Mon Sep 17 00:00:00 2001 From: Stephen Sun <5379172+stephenxs@users.noreply.github.com> Date: Wed, 7 Apr 2021 01:12:23 +0800 Subject: [PATCH] [monit] Avoid monit error log by removing "-l" from monit_swss|buffermgrd (#7236) Avoid the following error messages while dynamic buffer calculation is enabled ``` ERR monit[491]: 'swss|buffermgrd' status failed (1) -- '/usr/bin/buffermgrd -l' is not running in host ``` Change /usr/bin/buffermgrd -l to /usr/bin/buffermgrd. The buffermgrd is started by -l for traditional model or -a for dynamic model. So we need to use the common section of both. Signed-off-by: Stephen Sun --- dockers/docker-orchagent/base_image_files/monit_swss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dockers/docker-orchagent/base_image_files/monit_swss b/dockers/docker-orchagent/base_image_files/monit_swss index 1dcf4bf9b6d9..d4ea5454ef6b 100644 --- a/dockers/docker-orchagent/base_image_files/monit_swss +++ b/dockers/docker-orchagent/base_image_files/monit_swss @@ -40,7 +40,7 @@ check program swss|intfmgrd with path "/usr/bin/process_checker swss /usr/bin/in check program swss|portmgrd with path "/usr/bin/process_checker swss /usr/bin/portmgrd" if status != 0 for 5 times within 5 cycles then alert repeat every 1 cycles -check program swss|buffermgrd with path "/usr/bin/process_checker swss /usr/bin/buffermgrd -l" +check program swss|buffermgrd with path "/usr/bin/process_checker swss /usr/bin/buffermgrd" if status != 0 for 5 times within 5 cycles then alert repeat every 1 cycles check program swss|nbrmgrd with path "/usr/bin/process_checker swss /usr/bin/nbrmgrd"