Skip to content

[monit] Avoid monit error log by removing "-l" from monit_swss|buffermgrd#7236

Merged
lguohan merged 1 commit intosonic-net:masterfrom
stephenxs:fix-monit-buffermgrd
Apr 6, 2021
Merged

[monit] Avoid monit error log by removing "-l" from monit_swss|buffermgrd#7236
lguohan merged 1 commit intosonic-net:masterfrom
stephenxs:fix-monit-buffermgrd

Conversation

@stephenxs
Copy link
Collaborator

Why I did it

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

How I did it

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.

How to verify it

Manually test.

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012

Description for the changelog

A picture of a cute animal (not mandatory but encouraged)

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
```

Signed-off-by: Stephen Sun <[email protected]>
@lguohan lguohan merged commit 0b16ca4 into sonic-net:master Apr 6, 2021
@stephenxs stephenxs deleted the fix-monit-buffermgrd branch April 6, 2021 22:11
yxieca pushed a commit that referenced this pull request Apr 8, 2021
…mgrd (#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 <[email protected]>
raphaelt-nvidia pushed a commit to raphaelt-nvidia/sonic-buildimage that referenced this pull request May 23, 2021
…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 <[email protected]>
carl-nokia pushed a commit to carl-nokia/sonic-buildimage that referenced this pull request Aug 7, 2021
…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 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants