<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Troubleshooter Club]]></title><description><![CDATA[Troubleshooter Club]]></description><link>https://blog.troubleshooterclub.in</link><generator>RSS for Node</generator><lastBuildDate>Mon, 11 May 2026 16:30:47 GMT</lastBuildDate><atom:link href="https://blog.troubleshooterclub.in/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[How to troubleshoot a Disconnected Wazuh Agent in a Docker Single-Node Environment?]]></title><description><![CDATA[In this blog post, we'll walk through the steps to troubleshoot and resolve a disconnected Wazuh agent when using a Docker single-node setup. Wazuh is a powerful security monitoring tool, and it's essential to ensure that all agents are properly conn...]]></description><link>https://blog.troubleshooterclub.in/how-to-troubleshoot-a-disconnected-wazuh-agent-in-a-docker-single-node-environment</link><guid isPermaLink="true">https://blog.troubleshooterclub.in/how-to-troubleshoot-a-disconnected-wazuh-agent-in-a-docker-single-node-environment</guid><category><![CDATA[#cybersecurity]]></category><category><![CDATA[wazuh]]></category><category><![CDATA[Security]]></category><category><![CDATA[SIEM]]></category><dc:creator><![CDATA[Troubleshooter Club]]></dc:creator><pubDate>Thu, 06 Mar 2025 16:53:41 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/stock/unsplash/8xAA0f9yQnE/upload/2d1840550dcf3fc8c7ee73b4ba1d3111.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1741279708266/31d9c287-0d36-46ce-94a8-27060addb836.png" alt="Image description" /></p>
<p>In this blog post, we'll walk through the steps to troubleshoot and resolve a disconnected Wazuh agent when using a Docker single-node setup. Wazuh is a powerful security monitoring tool, and it's essential to ensure that all agents are properly connected to the Wazuh manager for effective monitoring. We'll cover checking logs, verifying configurations, and ensuring network connectivity.</p>
<p><strong>Step 1: Verify Docker Container Status</strong></p>
<p>First, ensure that all relevant Docker containers are running. Use the following command to list all running containers:</p>
<pre><code class="lang-bash">docker ps
</code></pre>
<p>Check for the Wazuh manager, indexer, and dashboard containers. Example output:</p>
<pre><code class="lang-bash">CONTAINER ID   IMAGE                           COMMAND                  CREATED         STATUS                      PORTS                                                                                                                                                                 NAMES
22825f91974b   wazuh/wazuh-dashboard:4.10.0    <span class="hljs-string">"/entrypoint.sh"</span>         7 weeks ago     Up 9 days                   443/tcp, 0.0.0.0:443-&gt;5601/tcp, [::]:443-&gt;5601/tcp                                                                                                                    single-node-wazuh.dashboard-1
e951f7c6be71   wazuh/wazuh-manager:4.10.0      <span class="hljs-string">"/init"</span>                  7 weeks ago     Up 9 days                   0.0.0.0:1514-1515-&gt;1514-1515/tcp, [::]:1514-1515-&gt;1514-1515/tcp, 0.0.0.0:514-&gt;514/udp, [::]:514-&gt;514/udp, 0.0.0.0:55000-&gt;55000/tcp, [::]:55000-&gt;55000/tcp, 1516/tcp   single-node-wazuh.manager-1
1a20bb195d5b   wazuh/wazuh-indexer:4.10.0      <span class="hljs-string">"/entrypoint.sh open…"</span>   7 weeks ago     Up 9 days                   0.0.0.0:9200-&gt;9200/tcp, [::]:9200-&gt;9200/tcp                                                                                                                           single-node-wazuh.indexer-1
</code></pre>
<p><strong>Step 2: Check Wazuh Manager Logs</strong></p>
<p>Check the logs of the Wazuh manager container for any errors or warnings. This can provide insights into why the agent might be disconnected:</p>
<pre><code class="lang-bash">docker logs e951f7c6be71
</code></pre>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1741279710171/0ed8b8c4-127c-4a7e-82b5-554084a4b4cc.png" alt="Image description" /></p>
<p><strong>Step 3: Verify Agent Configuration</strong></p>
<p>Ensure that the Wazuh agent configuration file (/var/ossec/etc/ossec.conf) on the agent machine is correctly configured with the manager's IP address.</p>
<ol>
<li>Open the agent configuration file:</li>
</ol>
<pre><code class="lang-bash">sudo nano /var/ossec/etc/ossec.conf
</code></pre>
<ol start="2">
<li>Verify the section has the correct manager IP address:</li>
</ol>
<pre><code class="lang-bash">&lt;client&gt;
    &lt;server&gt;
        &lt;address&gt;xxx.xx.x.x&lt;/address&gt;
        &lt;port&gt;1514&lt;/port&gt;
    &lt;/server&gt;
&lt;/client&gt;
</code></pre>
<p><strong>Step 4: Re-register the Agent</strong></p>
<p>If the agent is listed as disconnected, re-register it with the Wazuh manager. First, remove the existing agent registration from the Wazuh manager:</p>
<pre><code class="lang-bash">docker <span class="hljs-built_in">exec</span> -it e951f7c6be71 /var/ossec/bin/manage_agents -r 001
</code></pre>
<p>Re-register the agent using the following command on the agent machine:</p>
<pre><code class="lang-bash">sudo /var/ossec/bin/agent-auth -m xxx.xx.x.x -A kali
</code></pre>
<p><strong>Step 5: Restart Wazuh Agent</strong></p>
<p>After updating the configuration and re-registering the agent, restart the Wazuh agent service:</p>
<pre><code class="lang-bash">sudo systemctl restart wazuh-agent
</code></pre>
<p><strong>Step 6: Check Network Connectivity</strong></p>
<p>Ensure that the agent machine can communicate with the Wazuh manager. Use ping and telnet to test connectivity:</p>
<pre><code class="lang-bash">ping xxx.xx.x.x
telnet xxx.xx.x.x 1514
telnet xxx.xx.x.x 1515
</code></pre>
<p>Step 7: Verify Agent Status</p>
<p>Check the status of the agent from the Wazuh manager container:</p>
<pre><code class="lang-bash">docker <span class="hljs-built_in">exec</span> -it e951f7c6be71 /var/ossec/bin/agent_control -l
</code></pre>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1741279711873/8fb6cdb0-e14f-483e-b72a-7a3b0bf0e5cc.png" alt="Image description" /></p>
<p>Verify over Wazuh Dashboard UI</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1741279712977/3e18a91b-7648-4e18-b7b7-78dd220a2d57.png" alt="Image description" /></p>
<p>Thanks for reading, Keep troubleshooting!</p>
]]></content:encoded></item></channel></rss>