Wazuh Agent Not Connecting: A Troubleshooting Checklist

If a Wazuh agent is not connecting, first record its status and recent logs, then check the configured manager address and communication path. Investigate enrollment or identity errors using the matching log evidence. After a correction, verify both the connection and the monitoring data you expect to receive.

Dec 05, 2026 - 16:00
6
Wazuh Agent Not Connecting: A Troubleshooting Checklist
Wazuh agent troubleshooting with endpoint, laptop and manager

If a Wazuh agent is not connecting, first record its status and recent logs, then check the configured manager address and communication path. Investigate enrollment or identity errors using the matching log evidence. After a correction, verify both the connection and the monitoring data you expect to receive.

This defensive checklist uses Wazuh documentation checked on 17 November 2026. Commands are documentation-reviewed and were not executed. They assume an existing installation and authorised access to the relevant endpoint or manager; confirm your installed version, paths and configured ports before using them.

Find the failing stage first

  • Record whether the agent has ever connected.
  • Compare observations from the endpoint and manager.
  • Check the actual address, port and protocol.
  • Keep enrollment credentials and private keys out of tickets.
  • Confirm monitoring after the connection returns.

Wazuh agent not connecting: start with the reported status

Record the agent ID, endpoint, manager, installed versions and observation time. Note whether one endpoint is affected or several stopped reporting after the same change. Preserve the earliest relevant error before restarting services or replacing configuration.

Manager-side status and the next question
Status Meaning in the documented life cycle Next question
Never connected Enrolled but not yet connected. Did enrollment finish, and can communication begin?
Pending Connection authentication is incomplete. Does the state persist, and what do both logs show?
Active Connected and able to communicate. Is the expected monitoring data also arriving?
Disconnected The manager has stopped receiving keepalives within its configured threshold. What changed after the last confirmed connection?

These are manager-side life-cycle states. Their definitions come from Wazuh’s agent life-cycle documentation. [1] Record the observation time when comparing them with endpoint data.

Read endpoint status and logs before changing anything

On a Linux endpoint, the connection guide documents this read-only status check. Use an authorised account with permission to read the file; sudo may prompt for elevated access.

sudo grep ^status /var/ossec/var/run/wazuh-agentd.state

The returned value describes the local connection state. The guide distinguishes pending, disconnected and connected; these local values should not be treated as identical to every manager-side label. [2]

The statistics reference says the state file is first created when the agent connects to the manager. A missing file therefore needs context, including installation path and connection history; it does not alone establish that the package is damaged. [3]

Read recent log entries around the failure time. The documented Linux agent and manager log path is /var/ossec/logs/ossec.log; the default Windows 64-bit agent log is C:\Program Files (x86)\ossec-agent\ossec.log. [6]

sudo tail -n 100 /var/ossec/logs/ossec.log

On a Windows endpoint with the default path, use PowerShell with the required read permissions:

Get-Content -LiteralPath "C:\Program Files (x86)\ossec-agent\ossec.log" -Tail 100

These examples read existing records. They do not repair a connection. Keep logs in the approved support location and remove secrets or unrelated personal data before sharing excerpts.

Confirm the manager address, port and protocol

Read the effective client configuration on the affected endpoint and compare it with the intended deployment record. Check the address actually used by that host, including any name-resolution or routing differences between networks.

Wazuh’s client reference defines the server address as an IP address or resolvable hostname. The event port must match the manager listener; its documented defaults are port 1514 and TCP. Enrollment has a separate manager-address and port configuration. [4]

Record the selected destination before testing it. A successful test to an old address leaves the current configuration unexplained. If the deployment intentionally uses another port or UDP, use the matching procedure and configuration reference.

Compare the endpoint settings with the listening service on the intended manager through the deployment’s normal administration tools. A configuration file can describe an intended listener without proving that the service is currently accepting traffic.

Wazuh connection review: endpoint configuration, network path, manager and telemetry
Trace the actual destination and verify the result at each stage.

Test the connection path that the deployment needs

Wazuh’s architecture lists different default ports for different services. Use the actual configured values in a customised deployment. [5]

Default services to distinguish
Default port Purpose When it matters
1514/TCP Agent communication The ongoing endpoint-to-manager path.
1515/TCP Agent enrollment service When that enrollment method is in use.
55000/TCP Wazuh server API API operations and the relevant management path.

From the authorised endpoint, the enrollment guide uses netcat for TCP reachability checks. With netcat already installed, replace the placeholder with the approved manager address and test the communication port below. Adapt the port to the actual configuration.

nc -zv <WAZUH_MANAGER_IP_ADDRESS> 1514

The intended result is a TCP connection outcome, not a Wazuh authentication result. This command initiates a network connection and may create connection logs. It was not run here. Test an enrollment or API port only when the workflow requires it; do not request a blanket firewall opening.

If the check fails, review the specific route, destination listener and applicable host or network rules with their owners. If it succeeds, continue to the Wazuh logs and identity checks. A reachable TCP socket does not prove that the agent is accepted.

Use enrollment errors to choose the next check

Successful registration and ongoing communication need separate evidence. Read the error from the failed stage before attempting enrollment again.

Wazuh’s enrollment troubleshooting covers mismatched client keys, non-unique agent names and unreadable CA, certificate or private-key files. Match the observed error to the documented case before selecting a correction. [6]

Have the authorised identity owner compare the relevant records through the approved process. Do not paste client keys, passwords or private keys into a ticket or this article’s examples. Check whether a cloned image or rebuild reused identity material.

A correction can change the identity associated with an endpoint. Preserve the existing agent ID and deployment history, and determine who owns the decision before replacing registration data. This checklist does not provide a bulk key replacement or agent deletion command.

Check the trust configuration without weakening verification

When the error concerns a certificate file, investigate the configured path, file availability and service-account read access. Keep the error text and the component that emitted it together; an agent error and a manager error may point to different files.

The client reference documents a CA path for manager verification, and agent certificate and key paths when agent verification is required. It also describes the password-file path used for password-verified enrollment. [4]

Use the verification method intended by the deployment. Do not disable identity checks to make a connection test pass. Replacing a file requires checking its provenance, matching configuration and permissions through the owner’s change process.

If the trust design is unclear, gather the non-secret configuration and error evidence for the platform owner. Keep private-key contents out of the evidence bundle. A readable file alone does not establish that the intended identity has been verified.

Check component versions and the timing of changes

Record the complete installed versions and the last relevant deployment change. Distinguish an agent update, manager rebuild, network move and certificate rotation; each changes a different part of the connection context.

Wazuh’s upgrade guide states that central components must have identical version numbers, including patch level, and the manager must be the same version as or newer than the agents. [7]

Use that compatibility check to identify a discrepancy, then consult the supported upgrade procedure for the actual deployment. A connection incident is not sufficient reason to run an unplanned upgrade across the estate.

For broader monitoring context, see the WebAsha SIEM workflow guide. Keep the incident record focused on the component and change supported by the evidence.

Separate an agent connection from dashboard visibility

An Active status answers a connection question. The next check is whether the particular monitoring source you depend on is working. Identify the endpoint, expected data, time window and where you expect to see it.

Wazuh’s architecture describes dashboard queries to the server API for status information and separate queries to the indexer for indexed security data. These paths explain why a connection badge and a data-visibility problem need different checks. [5]

Review the relevant collection configuration and processing path with the monitoring owner. Use an approved benign observation or an existing known event to check the intended source. Record whether it reached the expected destination; do not claim recovery from a refreshed page alone.

Wazuh recovery checks: connection status, expected data, time window and evidence
Connection recovery and monitoring recovery require their own observations.

The WebAsha SIEM overview explains the wider monitoring role. This checklist does not establish that every module or detection rule is working when one data source returns.

Build a useful escalation record

If the cause remains unclear, provide a compact evidence bundle through the approved support channel. Keep facts and hypotheses in separate fields so the next person can continue without repeating the same checks.

An original escalation checklist
Field Include
Scope One or many agents, endpoint identity, manager and incident time.
History Last confirmed connection and relevant changes.
Configuration Redacted destination, port, protocol and enrollment method.
Evidence Time-aligned agent and manager errors, local state and reachability result.
Versions Exact component versions and deployment type.
Actions What changed, who authorised it and what was observed afterward.
Open question The specific uncertainty and next owner.

For each test, record where it ran and the observed result. Label a correction as proposed or applied so the next owner knows what still needs to be done. Avoid attaching complete configuration archives when a short redacted excerpt answers the question.

For team handovers and investigation skills, see the WebAsha SOC analyst responsibilities guide.

Verify the correction and keep a rollback record

Apply one evidence-supported correction at a time through the approved maintenance process. Back up the affected configuration or identity record in its protected location first. Record any service interruption that an approved restart or change creates.

Afterward, repeat the checks that failed: endpoint status, manager-side status and the relevant data observation. Compare their timestamps and observe the deployment for an appropriate agreed interval. Do not publish a universal recovery time from an untested example.

If the correction fails, use the documented rollback route and preserve the new error. A reinstall may erase useful context, so reserve it for a diagnosed case with an approved recovery procedure.

Discuss SOC Analyst training with WebAsha Technologies for structured monitoring and troubleshooting practice. Contact WebAsha with your starting level and the lab or evidence-review skills you want to develop.

Official references

  1. Wazuh: Agent life cycle
  2. Wazuh: Agent connection
  3. Wazuh: Agent state statistics
  4. Wazuh: Client configuration
  5. Wazuh: Architecture and ports
  6. Wazuh: Enrollment troubleshooting
  7. Wazuh: Upgrade and compatibility guide

Frequently Asked Questions

Record the agent ID, manager, observed status and failure time, then read relevant endpoint and manager logs. Check the configured destination and communication path before changing registration data. Preserve the earliest useful error for the investigation.

The documented manager-side life cycle uses Never connected for an enrolled agent that has not connected yet. Check the initial communication path and logs. Do not assume that an enrollment record proves successful ongoing agent communication.

The endpoint state file and manager-side life cycle describe observations from different components. Record their timestamps and compare the relevant meanings. A local status value alone does not establish that every dashboard view or monitoring source is healthy.

Wazuh’s statistics reference says the file is first created when the agent connects to the manager. Check installation location and connection history before interpreting its absence. A missing file alone does not establish that reinstallation is required.

The architecture lists 1514/TCP for agent communication, 1515/TCP for enrollment and 55000/TCP for the server API. Confirm actual configuration and test only the path required by the workflow. Custom deployments can use different settings.

A TCP connection result establishes reachability to that socket at the time of the test. Continue with the application logs, identity and connection-state checks. A reachable service does not by itself show that the agent was accepted.

Wazuh documents /var/ossec/logs/ossec.log for the Linux agent and manager. Confirm the installed path and read permissions before inspecting it. Compare entries around the failure time and share only the relevant redacted evidence through an approved channel.

First identify why communication stopped and whether enrollment is actually failing. Replacing registration data changes identity context and may obscure the original cause. Preserve existing records and use the approved recovery procedure when the evidence supports an identity correction.

Preserve the deployment’s intended identity verification. Check the configured certificate paths, file availability and required permissions with the owner. A connection obtained by weakening verification does not establish that the intended trust relationship is working correctly.

The upgrade guide requires identical versions across central components, including patch level, and a manager version equal to or newer than the agents. Record exact installed versions and consult the supported deployment-specific procedure before planning a corrective upgrade.

Connection status and the delivery of a particular monitoring source need separate observations. The dashboard uses different status and indexed-data paths. Check the expected source, time window and processing path instead of treating a refreshed badge as full recovery.

No commands, connection probes, enrollment changes or service restarts were executed. The examples were documentation-reviewed for existing authorised installations. Paths, versions and configured ports must be checked before use; no recovery result or universal repair time is claimed.

What's Your Reaction?

Like Like 0
Dislike Dislike 0
Love Love 0
Funny Funny 0
Wow Wow 0
Sad Sad 0
Angry Angry 0
Aayushi Sinha

With a passion for staying on the cutting edge of technology trends, I am dedicated to delivering content that not only informs but also inspires. Whether you need in-depth analysis pieces, informative guides, or thought-provoking opinion pieces, I craft content that resonates with tech enthusiasts and professionals alike.