This document will guide you to install or deploy the Wazuh agent.
All the commands described below need to be executed with root user privileges.
Adding the Wazuh repository¶
Installing Wazuh agent¶
On your terminal, install the Wazuh agent. You can choose between installation or deployment:
Now that the agent is installed, the next step is to register and configure it to communicate with the manager. For more information about this process, please visit the document: user manual.
You can automate the agent registration and configuration using variables. It is necessary to define at least the variable
WAZUH_MANAGER. The agent will use this value to register and this will be the assigned manager for forwarding events.
See the following document for additional deployment options: deployment variables.
Enable the service
(Optional) Disable the Wazuh updates:
We recommend maintaining the Wazuh manager version greater or equal to the Wazuh agents’. As a result, we recommended disabling the Wazuh repository in order to prevent accidental upgrades. To do this, use the following command:
Alternatively, if you want to download the wazuh-agent package directly, or check the compatible versions, you can do it from here.
To uninstall the agent: