Ubuntu zabbix agent

From wiki karavi
Revision as of 06:16, 8 December 2024 by Karavi (talk | contribs)
Jump to navigation Jump to search
  1. Step 1: Update Your System

sudo apt update

sudo apt upgrade -y

Step 2: Install Zabbix Agent

wget https://repo.zabbix.com/zabbix/6.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_6.0-4+ubuntu22.04_all.deb

sudo dpkg -i zabbix-release_6.0-4+ubuntu22.04_all.deb

sudo apt update

sudo apt install zabbix-agent

  1. Step 3: Configure Zabbix Agent

sudo nano /etc/zabbix/zabbix_agentd.conf

...

Server=<Zabbix_Server_IP>

ServerActive=<Zabbix_Server_IP>

Hostname=<Hostname_Of_Ubuntu_Client>

... Step 4: Start and Enable Zabbix Agent Service

sudo systemctl start zabbix-agent

sudo systemctl enable zabbix-agent

sudo systemctl status zabbix-agent


Step 5: firewall

sudo ufw status verbose

sudo ufw allow 10050

or

sudo ufw allow 10050/tcp


Step 6: Add the Zabbix Client to the Zabbix Server