How to install zabbix agent on Ubuntu
To install the Zabbix agent on Ubuntu, run the command
1 |
apt install zabbix-agent |
To autostart, Zabbix agent on boot, enable it with
1 |
systemctl enable zabbix-agent |
To manage Zabbix, use commands
1 2 3 |
systemctl stop zabbix-agent systemctl start zabbix-agent systemctl restart zabbix-agent |
To see Zabbix listening port
1 |
netstat -lntp | grep zabbix |
Edit file
1 |
vi /etc/zabbix/zabbix_agentd.conf |
Find
1 |
Server=127.0.0.1 |
Replace with
1 |
Server=127.0.0.1,IP_OF_ZABBIX_SERVER_HERE |
Restart zabbix agent
1 |
systemctl restart zabbix-agent |
After the Zabbix agent is installed, you need to add the sevrer in your Zabbix installation.