Skip to content

Latest commit

 

History

History
80 lines (41 loc) · 3.96 KB

wazuh-agent-package-macos.rst

File metadata and controls

80 lines (41 loc) · 3.96 KB

Installing Wazuh agents on macOS endpoints

The agent runs on the endpoint you want to monitor and communicates with the Wazuh server, sending data in near real-time through an encrypted and authenticated.

Note

You need root user privileges to run all the commands described below.

  1. To start the installation process, download the Wazuh agent according to your architecture:
  2. Select the installation method you want to follow: Command line interface (CLI) or graphical user interface (GUI).

    CLI

    1. To deploy the Wazuh agent on your endpoint, choose your architecture, edit the WAZUH_MANAGER variable to contain your Wazuh manager IP address or hostname, and run the following command.

      Intel

      # echo "WAZUH_MANAGER='10.0.0.2'" > /tmp/wazuh_envs && installer -pkg wazuh-agent-|WAZUH_CURRENT_OSX|-|WAZUH_REVISION_OSX|.intel64.pkg -target /

      Apple silicon

      4.5.1

      # echo "WAZUH_MANAGER='10.0.0.2'" > /tmp/wazuh_envs && installer -pkg wazuh-agent-|WAZUH_CURRENT_OSX|-|WAZUH_REVISION_OSX|.arm64.pkg -target /

      For additional deployment options such as agent name, agent group, and registration password, see the Deployment variables for macOS </user-manual/agent/deployment-variables/deployment-variables-macos> section.

      Note

      Alternatively, if you want to install an agent without registering it, omit the deployment variables. To learn more about the different registration methods, see the Wazuh agent enrollment </user-manual/agent/agent-enrollment/index> section.

    2. To complete the installation process, start the Wazuh agent.

      # /Library/Ossec/bin/wazuh-control start

    The installation process is now complete, and the Wazuh agent is successfully deployed and running on your macOS endpoint.

    GUI

    1. To install the Wazuh agent on your system, run the downloaded file and follow the steps in the installation wizard. If you are not sure how to answer some of the prompts, use the default answers.

      ../../images/installation/macos-agent.png

    2. To complete the installation process, start the Wazuh agent.

      # sudo /Library/Ossec/bin/wazuh-control start

    The installation process is now complete, and the Wazuh agent is successfully installed on your macOS endpoint. The next step is to register and configure the agent to communicate with the Wazuh server. To perform this action, see the Wazuh agent enrollment </user-manual/agent/agent-enrollment/index> section.

By default, all agent files are stored in /Library/Ossec/ after the installation.