[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 <stephens@nvidia.com>
This commit is contained in:
Stephen Sun 2021-04-07 01:12:23 +08:00 committed by GitHub
parent d4209e2a50
commit 0b16ca4ae9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"