After restarting the OSSEC agent and checking its status, I observed the following:
Jun 11 15:08:42 staging-1 ossec-control[4058881]: 2025/06/11 15:08:42 ossec-agentd: INFO: Using notify time: 600 and max time to reconnect: 1800 Jun 11 15:08:42 staging-1 ossec-control[4058861]: Started ossec-agentd... Jun 11 15:08:42 staging-1 ossec-control[4058885]: 2025/06/11 15:08:42 ossec-logcollector: Remote commands are not accepted from the manager. Ignoring it on the agent.conf Jun 11 15:08:42 staging-dock-1 ossec-control[4058885]: 2025/06/11 15:08:42 ossec-logcollector(1202): ERROR: Configuration error at '/var/ossec/etc/shared/agent.conf'. Exiting. Jun 11 15:08:42 staging-1 ossec-control[4058861]: Started ossec-logcollector... Jun 11 15:08:42 staging-1 ossec-control[4058861]: Started ossec-syscheckd... Jun 11 15:08:44 staging-1 ossec-control[4058861]: Completed. Also when I checked the agent logs: 2025/06/11 14:48:16 ossec-agentd(4102): INFO: Connected to server 10.10.10.20, port 1514. 2025/06/11 14:48:16 ossec-agentd: INFO: Server responded. Releasing lock. 2025/06/11 14:54:03 ossec-agentd(1218): ERROR: Unable to send message to 'server'. 2025/06/11 14:54:05 ossec-agentd(1218): ERROR: Unable to send message to 'server'. 2025/06/11 14:54:06 ossec-agentd(1218): ERROR: Unable to send message to 'server'. 2025/06/11 14:54:13 ossec-agentd(1218): ERROR: Unable to send message to 'server'. 2025/06/11 14:54:15 ossec-agentd(1218): ERROR: Unable to send message to 'server'. I need help with this error. Thanks -- --- You received this message because you are subscribed to the Google Groups "ossec-list" group. To unsubscribe from this group and stop receiving emails from it, send an email to ossec-list+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/ossec-list/87bf1f78-71de-447d-90d3-ef28daee5a16n%40googlegroups.com.