Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Hostname Customization #129

Open
5 tasks
mej opened this issue Feb 27, 2023 · 0 comments
Open
5 tasks

Improve Hostname Customization #129

mej opened this issue Feb 27, 2023 · 0 comments
Assignees
Labels
enhancement PRIORITY Urgent, high-priority issue/PR for 1.4.4, post-1.4.3 hotfix branch UI/UX boost Improvements in the user interface/experience usability Confusing, strange, misleading, or otherwise problematic UX
Milestone

Comments

@mej
Copy link
Owner

mej commented Feb 27, 2023

One of the most oft-mentioned challenges with NHC is changing which hostname it uses for match string comparisons, offlining support, etc. Due to the way configuration files are parsed, you can't use the config file to alter the HOSTNAME variable and have that setting affect which checks get loaded and run. The only way to do it at present is to use /etc/sysconfig/nhc, the global, multi-context, system-wide settings file.

So here's my current plan:

  • Allow easy command-line manipulation of the HOSTNAME setting via a new -H option
  • Detect attempts to alter HOSTNAME (and HOSTNAME_S?) in the config file; if detected, update the HOSTNAME setting, clear out the check array, and reload the config file from scratch
  • ❓ In parallel to /etc/nhc/<NAME>.conf, we could add support for /etc/nhc/<NAME>.hostname
  • ❓ Is there a need for a new RMHOST setting to allow the hostname used for match strings to differ from the one passed to the resource manager (RM)?
  • Other ideas?

As always, your feedback is welcome!

@mej mej added enhancement usability Confusing, strange, misleading, or otherwise problematic UX PRIORITY Urgent, high-priority issue/PR for 1.4.4, post-1.4.3 hotfix branch UI/UX boost Improvements in the user interface/experience labels Feb 27, 2023
@mej mej added this to the 1.4.4 Release milestone Feb 27, 2023
@mej mej self-assigned this Feb 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement PRIORITY Urgent, high-priority issue/PR for 1.4.4, post-1.4.3 hotfix branch UI/UX boost Improvements in the user interface/experience usability Confusing, strange, misleading, or otherwise problematic UX
Projects
None yet
Development

No branches or pull requests

1 participant