Skip to content

Latest commit

 

History

History
65 lines (40 loc) · 2.04 KB

README.md

File metadata and controls

65 lines (40 loc) · 2.04 KB

Wazuh Agent Setup

Release Client

This script automates the installation and setup of the Wazuh agent along with necessary dependencies and additional tools: Yara and Snort

Supported Operating Systems

  • Ubuntu
  • MacOS
  • Windows

Installation

Remark: This script will enroll the Wazuh agent on the dev cluster by default, you should meet a member of the wazuh team if you want to enroll it elsewhere

Linux/MacOS Installation

To run the script and install all these components, use the following command:

curl -SL --progress-bar https://raw.githubusercontent.com/ADORSYS-GIS/wazuh-agent/main/scripts/setup-agent.sh | WAZUH_AGENT_NAME=test bash

Windows Installation

For Windows, Please follow this step by step process to setup the windows wazuh agent.

1. Open powershell in administrator mode.

2. Run the command to set execution policy. Please respond with "[A] Yes to All"

# Set Execution Policy to be able to run powershell script
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned

3. Run the following commands to download dependecy script and execute it

#Download Dependency script
Invoke-WebRequest -Uri 'https://raw.githubusercontent.com/ADORSYS-GIS/wazuh-agent/refs/heads/main/scripts/deps.ps1' -OutFile 'deps.ps1'

# Run dependency script
.\deps.ps1

3. Please close your powershell terminal and re-open in administrator mode again.

4. Setup your Agent Name and Run the following commands to complete the installation.

#Set Wazuh Manager domain name.
$env:WAZUH_MANAGER = "master.wazuh.adorsys.team"

# Download Setup-agent script
Invoke-WebRequest -Uri 'https://raw.githubusercontent.com/ADORSYS-GIS/wazuh-agent/refs/heads/main/scripts/setup-agent.ps1' -OutFile 'setup-agent.ps1'

#Run Setup-agent script
.\setup-agent.ps1