This script automates the installation and setup of the Wazuh agent along with necessary dependencies and additional tools: Yara and Snort
- Ubuntu
- MacOS
- Windows
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
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
For Windows, Please follow this step by step process to setup the windows wazuh agent.
# Set Execution Policy to be able to run powershell script
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned
#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
#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