Werk #14074: Agent controller: Try to query port both via http and https
|Title||Agent controller: Try to query port both via <tt>http</tt> and <tt>https</tt>|
|Date||May 12, 2022|
|Checkmk Edition||Checkmk Raw (CRE)|
|Checkmk Version||2.2.0b1 2.1.0b9|
|Compatibility||Compatible - no manual interaction needed|
When registering at a site, the agent controller (cmk-agent-ctl) needs to know the port at which the site is reachable. If not explicitly passed via the command line, the controller tries to query this port from the REST API of the site.
Up to now, the controller only attempted to contact the REST API via http. Now, the controller tries both http and https and only fails if neither of the two suceeded.