Install Wazuh agent on macOS¶
The macOS agent can be downloaded from packages list. You can install it by using the command line or following the GUI steps:
- Using the command line, you can choose installation or deployment:
Installation:# installer -pkg wazuh-agent-3.9.1-1.pkg -target /
You can automate the agent registration and configuration using variables. It is necessary to define at least the variable
WAZUH_MANAGER_IP. The agent will use this value to register and it will be the assigned manager for forwarding events.# launchctl setenv WAZUH_MANAGER_IP "10.0.0.2" && installer -pkg wazuh-agent-3.9.1-1.pkg -target /
See the following document for additional automated deployment options deployment variables.
By default, all agent files can be found at the following location:
Now that the agent is installed, if you didn’t use the deployment method, you will now have to register and configure the agent to communicate with the manager. For more information about this process, please visit user manual.