According to this warning I should run “cmk-agent-ctl register”, but I have no luck with that.
Is there a way to resolve this?
Summary
Version: 2.3.0p30, OS: linux, TLS is not activated on monitored host (see details)WARN, Agent plug-ins: 0, Local checks: 0
Details:
Version: 2.3.0p30
OS: linux
The hosts agent supports TLS, but it is not being used.
We strongly recommend to enable TLS by registering the host to the site (using the cmk-agent-ctl register command on the monitored host).
NOTE: A registered host will refuse all unencrypted connections. If the host is monitored by multiple sites, you must register to all of them. This can be problematic if you are monitoring the same host from a site running Checkmk version 2.0 or earlier.
If you can not register the host, you can configure missing TLS to be OK in the setting “State in case of available but not enabled TLS” of the ruleset “Checkmk Agent installation auditing”.WARN
Agent plug-ins: 0
Local checks: 0
NOTE:
In a distributed env, the TLS must register to the site responsible for polling the host.
The agent updater plugin needs to register against the primary site
Sorry for the late reply.
Was caught up with some else.
Still no luck resolving this.
Failed to discover agent receiver port from Checkmk REST API, both with http and https.
How can I verify that the REST API agent receiver port is available or if the REST API is working or configured correctly?
This is what and how I entered:
cmk-agent-ctl.exe register --server SERVER-FQDN --site CMKSITE --user USERNAME --hostname HOSTNAME
Result:
[2025-05-13 09:26:50.169657 -03:00] ERROR [cmk_agent_ctl] src/main.rs:29: Failed to discover agent receiver port from Checkmk REST API, both with http and https. Run with verbose output to see errors.