Skip to content

Commit

Permalink
[monit] Avoid monit error log by removing "-l" from monit_swss|buffer…
Browse files Browse the repository at this point in the history
…mgrd (sonic-net#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 <stephens@nvidia.com>
  • Loading branch information
stephenxs committed Apr 6, 2021
1 parent d4209e2 commit 0b16ca4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dockers/docker-orchagent/base_image_files/monit_swss
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 0b16ca4

Please sign in to comment.