Is the agent controller on the Proxmox host the same Checkmk major version? There has been some changes that break agent registration of 2.2.0 agents on 2.4.0 servers. Only registration is affected, already registered 2.2.0 agents continue to work with Checkmk 2.4.0.
cmk-agent-ctl --version