Introduction
I am having issues trying to install a Wazuh Agent on my Proxmox Server.
Problem
- Installing a Wazuh Agent on Proxmox
Plan
- Figure out issue and install the agent
Process
I would like to point out that Proxmox does not require ‘sudo’ if logged into root account. If not using Proxmox and the root account you need to use ‘sudo’.
First thing is verify that sudo and lsb-release is installed.
apt install sudo
apt install lsb-release
apt install net-tools
uname -m
// this provides the architachture to seclect the right type in Wazuh.
After those two being installed we run the install script given to us by Wazuh. It looks simular to this:
wget <https://packages.wazuh.com/4.x/apt/pool/main/w/wazuh-agent/wazuh-agent_4.12.0-1_amd64.deb> && WAZUH_MANAGER='192.168.1.X' WAZUH_AGENT_GROUP='default' WAZUH_AGENT_NAME='XXXX' dpkg -i ./wazuh-agent_4.12.0-1_amd64.deb
Also take note to remove “sudo” and make sure it is the ip/domain name that is qualified.
Once it seems that the command ran with out errors, run these three commands with out sudo
systemctl daemon-reload
systemctl enable wazuh-agent
systemctl start wazuh-agent
If you run into issues, As of now this is what i have done to reset and run it correctly:
systemctl stop wazuh-agent
ls
//remove all files here
rm waz.....
systemctl daemon-reload
systemctl status wazuh-agent
// Here, make sure Loaded:not-found and you did just run 'systemctl daemon-reload'
// Now run the wget......
// should run with no errors
// Run this with a hesitation:
systemctl daemon-reload
systemctl enable wazuh-agent
systemctl start wazuh-agent
As long as you don’t get an error you should be good.