Skip to content

[config] Reload Monit configuration after potential hostname changes#1132

Merged
jleveque merged 2 commits intosonic-net:masterfrom
jleveque:monit_reload_config
Oct 8, 2020
Merged

[config] Reload Monit configuration after potential hostname changes#1132
jleveque merged 2 commits intosonic-net:masterfrom
jleveque:monit_reload_config

Conversation

@jleveque
Copy link
Contributor

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

- How to verify it

  1. Modify hostname in config_db.json, run config reload, then run monit status and ensure hostname is updated
  2. Change hostname using config hostname command, then run monit status and ensure hostname is updated

@jleveque
Copy link
Contributor Author

jleveque commented Oct 5, 2020

Retest this please

@jleveque jleveque merged commit 2e024de into sonic-net:master Oct 8, 2020
@jleveque jleveque deleted the monit_reload_config branch October 8, 2020 23:12
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]>
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.

3 participants