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

Komponente Agent bakery
Titel Agent controller: Try to query port both via http and https
Datum 12.05.2022
Checkmk Edition Checkmk Raw (CRE)
Checkmk-Version 2.1.0b9 2.2.0b1
Level Kleine Änderung
Klasse Neues Feature
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen

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.

Zur Liste aller Werks