1
Choose your OS
2
Wazuh server address
3
Complete the installation
New installation Registration
Copy to clipboard sudo WAZUH_MANAGER='{{config.managerIp}}' yum install https://packages.wazuh.com/4.x/yum/wazuh-agent-{{wazuhVersion}}-1.x86_64.rpm
Copy to clipboard curl -so wazuh-agent.deb https://packages.wazuh.com/4.x/apt/pool/main/w/wazuh-agent/wazuh-agent_{{wazuhVersion}}-1_amd64.deb && sudo WAZUH_MANAGER='{{config.managerIp}}' dpkg -i ./wazuh-agent.deb
Copy to clipboard Invoke-WebRequest -Uri https://packages.wazuh.com/4.x/windows/wazuh-agent-{{wazuhVersion}}-1.msi -OutFile wazuh-agent.msi; wazuh-agent.msi /q WAZUH_MANAGER='{{config.managerIp}}' WAZUH_REGISTRATION_SERVER='{{config.managerIp}}'
You will need administrator privileges to perform this installation.
Copy to clipboard curl -so wazuh-agent.pkg https://packages.wazuh.com/4.x/osx/wazuh-agent-{{wazuhVersion}}-1.pkg && sudo launchctl setenv WAZUH_MANAGER '{{config.managerIp}}' && sudo installer -pkg ./wazuh-agent.pkg -target /
Agent name:
 
1. Set the manager IP. Copy to clipboard
sed -i 's:MANAGER_IP:'{{config.managerIp}}':g' /var/ossec/etc/ossec.conf
2. Register the agent against the manager. Copy to clipboard
/var/ossec/bin/manage_agents -i {{config.agentKey}}
3. Restart the agent. Copy to clipboard
/var/ossec/bin/wazuh-control restart
1. Set the manager IP.
Change MANAGER_IP for {{config.managerIp}} in C:\Program Files (x86)\wazuh-agent\ossec.conf:
Copy to clipboard
<client>
  <server>
    <address>{{config.managerIp}}</address>
    ...
  </server>
</client>
2. Register the agent against the manager. Copy to clipboard
'C:\Program Files (x86)\wazuh-agent\manage_agents' -i {{config.agentKey}}
3. Restart the agent.
For this you can use Powershell or CMD.
a) Powershell: Restart-Service -Name wazuh Copy to clipboard
Restart-Service -Name wazuh
b) CMD: Copy to clipboard
net stop wazuh
net start wazuh
1. Set the manager IP. Copy to clipboard
sed -i '' -e 's/MANAGER_IP/{{config.managerIp}}/g' /Library/Ossec/etc/ossec.conf
2. Register the agent against the manager. Copy to clipboard
/Library/Ossec/bin/manage_agents -i {{config.agentKey}}
3. Restart the agent. Copy to clipboard
/Library/Ossec/bin/wazuh-control restart
Reset