Is there a utility (like ossec-logtest for ossec configuration) to check agent.conf for potential errors before saving to /var/ossec/etc/shared/default?
Agent.conf gets automatically copied to managed agents that restart upon receiving the changed agent.conf (no need to restart or reload the Wazuh server to apply the changes).
No checking seems to be performed on agent.conf. It is only after the changes are received by the agent, and agent service restarted (an unattended operation), that ossec.log on the agent gives any indication of a problem with agent.conf, without giving out any useful diagnostic information about the cause(s) of the problem(s). Not even the first line number that may be the cause of agent.conf being considered "corrupt" by the Wazuh agent.