Werk #15657: Agent controller: Changes in the output format of the status command
Component | Agent bakery |
Title | Agent controller: Changes in the output format of the status command |
Date | Apr 13, 2023 |
Checkmk Edition | Checkmk Raw (CRE) |
Checkmk Version | 2.3.0b1 2.2.0b4 |
Level | Trivial Change |
Class | New Feature |
Compatibility | Incompatible - Manual interaction might be required |
This werk is only incompatible for users who process the json output of the agent controller status command (cmk-agent-ctl status --json). For all other users, this werk is purely informational.
The human-readable output of the status command has changed as follows:
- The section about the remote status of a connection does not report `Registration state: operational` anymore, since this was redundant information. If the host is registered, we now simply report hostname and connection mode.
- If the host is not registered anymore at the monitoring site, we now report `Not registered`. Before, the controller reported a 404 error with a description stating that the host is not registered.
These changes are also reflected in the new json schema for the remote status, which reads
{"status": "Registered", "hostname": "...", "connection_mode": "..."}
for registered hosts and
{"status":"NotRegistered"}
for hosts which are not registered.