Good morning I am fine and you ?
Ok, so here are the answers to the questions:
- 1. What is the version of the manager and the agents?wazuh-manager/stable,now 4.3.8-1 amd64
wazuh-agent/stable 4.3.8-1 amd64
- 2. Do you have any warning or error in the logs of any component? (use the command grep "WARN\|ERR" /var/ossec/logs/ossec.log on every machine)
For agent machine2 (and same for every agent):
root@machine2:/etc# grep "WARN\|ERR" /var/ossec/logs/ossec.log
2022/11/02 02:57:41 wazuh-agentd: WARNING: Server unavailable. Setting lock.
2022/11/02 04:28:32 wazuh-agentd: WARNING: Server unavailable. Setting lock.
2022/11/02 04:30:19 wazuh-syscheckd: WARNING: Process locked due to agent is offline. Waiting for connection...
2022/11/02 04:32:33 wazuh-logcollector: WARNING: Process locked due to agent is offline. Waiting for connection...
2022/11/02 05:08:21 wazuh-agentd: WARNING: Server unavailable. Setting lock.
2022/11/02 05:08:33 wazuh-logcollector: WARNING: Process locked due to agent is offline. Waiting for connection...
2022/11/02 05:12:38 wazuh-syscheckd: WARNING: Process locked due to agent is offline. Waiting for connection...
2022/11/02 05:15:43 wazuh-agentd: ERROR: Duplicate agent name: machine2 (from manager)
2022/11/02 05:15:43 wazuh-agentd: ERROR: Unable to add agent (from manager)
2022/11/02 05:15:53 wazuh-agentd: WARNING: (4101): Waiting for server reply (not started). Tried: '192.168.1.10'.
2022/11/02 05:15:53 wazuh-agentd: WARNING: Unable to connect to any server.
2022/11/02 05:49:14 wazuh-agentd: WARNING: Server unavailable. Setting lock.
2022/11/02 05:50:33 wazuh-logcollector: WARNING: Process locked due to agent is offline. Waiting for connection...
2022/11/02 05:50:48 wazuh-syscheckd: WARNING: Process locked due to agent is offline. Waiting for connection...
For Wazuh-manager :
root@wazuh-manager:/opt# grep "WARN\|ERR" /var/ossec/logs/ossec.log
2022/11/02 05:15:42 wazuh-authd: WARNING: Duplicate name 'machine1', rejecting enrollment. Agent '007' can't be replaced since it is not disconnected.
2022/11/02 05:15:43 wazuh-authd: WARNING: Duplicate name 'machine2', rejecting enrollment. Agent '008 can't be replaced since it is not disconnected.
2022/11/02 05:15:43 wazuh-authd: WARNING: Duplicate name 'machine3', rejecting enrollment. Agent '009' can't be replaced since it is not disconnected.
- 3. All the machines were up the whole time?
Yes.
Unfortunately, I don't have the logs when the problem occurred, these are the last logs I have access to.
Thank you for your help !