CMK version: 2.2.0b6.cre
OS version: Debian 11 (Server), Windows Server 2019 (Host)
Error message:
[2023-06-11 17:01:03.664255 +02:00] ERROR [cmk_agent_ctl] src\main.rs:29: Error registering exisiting host at https://10.200.200.5:8001/Hegmanns_AG
Caused by:
Request failed with code 500 Internal Server Error: Internal Server Error
Description:
Hello Guys!
As the title says, I’m all of a sudden unable to register agents with my CheckMK-Server. If I try to register a new host, I get to the stage where I can confirm the certificate and then the registration fails, citing an internal server error with error code 500.
I strongly suspect SSL for being the root for this error, as this issue started occuring since I activated https.
Used Command:
& 'C:\Program Files (x86)\checkmk\service\cmk-agent-ctl.exe' -vv register --hostname test-wins-hgh-0.hegmanns.test --server 10.200.200.5 --site Hegmanns_AG --user registration --password XXX
Output from cmk-agent-ctl.exe
[2023-06-11 17:00:59.700480 +02:00] INFO [cmk_agent_ctl] src\main.rs:14: starting
[2023-06-11 17:00:59.702972 +02:00] INFO [cmk_agent_ctl] src\lib.rs:50: Loaded config from '"C:\\ProgramData\\checkmk\\agent\\cmk-agent-ctl.toml"', connection registry from '"C:\\ProgramData\\checkmk\\agent\\registered_connections.json"'
[2023-06-11 17:00:59.707109 +02:00] DEBUG [reqwest::connect] C:\Users\sk\.cargo\registry\src\github.com-1ecc6299db9ec823\reqwest-0.11.13\src\connect.rs:429: starting new connection: https://10.200.200.5/
Attempting to register at 10.200.200.5, port 8001. Server certificate details:
PEM-encoded certificate:
-----BEGIN CERTIFICATE-----
[...]
-----END CERTIFICATE-----
Issued by:
Site 'Hegmanns_AG' local CA
Issued to:
Hegmanns_AG
Validity:
From Fri, 12 May 2023 12:11:56 +0000
To Sun, 12 May 3022 12:11:56 +0000
Do you want to establish this connection? [Y/n]
> Y
[2023-06-11 17:01:03.612401 +02:00] DEBUG [reqwest::connect] C:\Users\sk\.cargo\registry\src\github.com-1ecc6299db9ec823\reqwest-0.11.13\src\connect.rs:429: starting new connection: https://10.200.200.5:8001/
[2023-06-11 17:01:03.664255 +02:00] ERROR [cmk_agent_ctl] src\main.rs:29: Error registering exisiting host at https://10.200.200.5:8001/Hegmanns_AG
Caused by:
Request failed with code 500 Internal Server Error: Internal Server Error
What I already tried:
- Using a different Server
- Using FQDN instead of IP
- Reinstalling the Host-Agent
- Restarting Host as well as Server
- Tried using trust cert option
- Checked hostname for typos
Any Ideas on how to fix this?
Thanks in advance,
Pierre