- Server service to restart : sudo service zabbix-server restart
agents to install
CentOS/RHEL 7/6
Step 1 – Add Required Repository
CentOS/RHEL 7:
rpm -Uvh https://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-2.el7.noarch.rpm
CentOS/RHEL 6:
rpm -Uvh https://repo.zabbix.com/zabbix/4.0/rhel/6/x86_64/zabbix-release-4.0-2.el6.noarch.rpm
Step 2 – Install Zabbix Agent
yum install zabbix zabbix-agent
Debian
Run Apt update
sudo apt update
Install Zabbix Agent LTS on Debian 11 using APT
sudo apt install zabbix-agent
XEN Server
yum –enablerepo base install git
Manual Install for XEN
download rpm package from Zabbix official page.
rpm -Uvh http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm
Install Zabbix agent via command below.
yum install zabbix-agent -y
configure and enable agent
Configure Zabbix Agent
nano /etc/zabbix/zabbix_agentd.conf
#Server=[zabbix server ip]
#Hostname=[ Hostname of client system ]
Server=192.168.1.100
Hostname=Server1
ActiveServer
Running Zabbix Agent
systemctl restart zabbix-agent
sudo service zabbix-agent start
To check the status;
systemctl status zabbix-agent
To enable and start zabbix-agent service – in rear cases
sudo systemctl enable zabbix-agent
sudo systemctl enable –now zabbix-agent
Open Port
vi /etc/sysconfig/iptables
nano /etc/sysconfig/iptables
iptables -A INPUT -p tcp -s 192.168.1.100 –dport 10050 -m state –state NEW,ESTABLISHED -j ACCEPT
systemctl restart iptables
To start and stop zabbix-agent service anytime
service zabbix-agent start
service zabbix-agent stop
Zabbix Default Appliance Configuration
https://www.zabbix.com/documentation/5.0/en/manual/appliance
