Free on-demand webinars: Learn how to set up, configure, and get more out of Checkmk – Pick your webinar

Werk #22630: cmk-agent-ctl: Pass the registration password in an environment variable

Component Checks & agents
Title cmk-agent-ctl: Pass the registration password in an environment variable
Date Nov 23, 2026
Level Trivial Change
Class New Feature
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
3.0.0b1
Not yet released
Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Cloud, Checkmk Ultimate MT
2.5.0p23
Not yet released
Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Cloud, Checkmk Ultimate MT

When a host is registered from a script or a configuration management tool, the password of the Checkmk user had to be passed with the option --password. While the command ran, the password was visible in the process list to every user of the host.

The agent controller now also reads the password from the environment variable CMK_AGENT_CTL_REGISTRATION_PASSWORD. This applies to the modes register, register-new and proxy-register, on Linux and on Windows.

The option --password takes precedence over the variable. If neither is given, the controller asks for the password as before. Like --password, the variable cannot be combined with --ott.

To the list of all Werks