The CLI debug seems to indicate a successful connection and initially the host showed 19 monitored services but they quickly became vanished services.
Check_MK version 2.2.0p11 CRE
Ubuntu 22.04
> Graph client: /6888888-0f2a-412345678912334545/oauth2/token (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7ff78b5d5750>: Failed to establish a new connection: [Errno -2] Name or service not known'))**CRIT** , Management client: /6888888-0f2a-412345678912334545/oauth2/token (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7ff78ad6e090>: Failed to establish a new connection: [Errno -2] Name or service not known'))**CRIT** , Warnings: 0, Exceptions: 0
Graph client: /6717186xxxxxxxxxxxxxx-b9bb2c70c58f/oauth2/token
(Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at
0x70bb8a819750>: Failed to establish a new connection: [Errno -2]
Name or service not known')) CRIT, Management client: /67171c70c58f/oauth2/token
(Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at
0x70bb89fae2d0>: Failed to establish a new connection: [Errno -2] Name or service not
known'))CRIT, Warnings: 0, Exceptions: 0
Interestingly after applying the config suggested the error message has changed slightly
Graph client: /67171865-0f2a-4xxxxxxxxxxxx0c58f/oauth2/token
(Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at
0xxxx0e61bec50>: Failed to establish a new connection: [Errno -2]
Name or service not known'))CRIT, Warnings: 0, Exceptions: 0