ERROR: Agent exited with code 1: Connection error: HTTPSConnectionPool

First step - on the command line do a “cmk -D hostname” to get the agent command executed by CMK.
Try this command manually and inspect if there is a little bit more error message.
Most times you can run the agent with debug or verbose output to get more information.