[config] Reload Monit configuration after potential hostname changes#1132
Merged
jleveque merged 2 commits intosonic-net:masterfrom Oct 8, 2020
jleveque:monit_reload_config
Merged
[config] Reload Monit configuration after potential hostname changes#1132jleveque merged 2 commits intosonic-net:masterfrom jleveque:monit_reload_config
jleveque merged 2 commits intosonic-net:masterfrom
jleveque:monit_reload_config
Conversation
Contributor
Author
|
Retest this please |
lguohan
approved these changes
Oct 7, 2020
abdosi
pushed a commit
that referenced
this pull request
Oct 13, 2020
…1132) **- What I did** After hostname changes, we need to reload the Monit configuration in order for Monit to pick up the new system hostname. Otherwise, it will retain the previous hostname. **- How I did it** Call `sudo monit reload` after restarting hostname-config.service.
stepanblyschak
pushed a commit
to stepanblyschak/sonic-utilities
that referenced
this pull request
Apr 28, 2022
Enable m_isCombinedMirrorV6Table for BFN platform (sonic-net#1212) [vnet]: Update VNET route table size to 40K for BITMAP implementation (sonic-net#1132) Default action for Egress ACL Table not poulated. (sonic-net#1208) Add/Del lag_name_map item according to lag adding and removing (sonic-net#1124) Increase ip2me CIR/CBR for faster in-band file transfers (sonic-net#1000)
stepanblyschak
pushed a commit
to stepanblyschak/sonic-utilities
that referenced
this pull request
Apr 28, 2022
[pfcstat] Create new copies of Rx and Tx dictionaries (sonic-net#1150) [config] Reload Monit configuration after potential hostname changes (sonic-net#1132) Signed-off-by: Abhishek Dosi <[email protected]>
stepanblyschak
pushed a commit
to stepanblyschak/sonic-utilities
that referenced
this pull request
Apr 28, 2022
Updated sonic-util to fix error done by cherry-pick of PR [config] Reload Monit configuration after potential hostname changes (sonic-net#1132) Signed-off-by: Abhishek Dosi <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
- What I did
After hostname changes, we need to reload the Monit configuration in order for Monit to pick up the new system hostname. Otherwise, it will retain the previous hostname.
- How I did it
Call
sudo monit reloadafter restarting hostname-config.service.- How to verify it
config reload, then runmonit statusand ensure hostname is updatedconfig hostnamecommand, then runmonit statusand ensure hostname is updated