Werk #14074: Agent controller: Try to query port both via http and https

Component Agent bakery
Title Agent controller: Try to query port both via http and https
Date May 12, 2022
Checkmk Edition Checkmk Raw (CRE)
Checkmk Version 2.1.0b9 2.2.0b1
Level Trivial Change
Class New Feature
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.

To the list of all Werks