仅用于被监控端(受控端)安装,master请看另外教程。
一、对应系统rpm
CentOS 6
rpm -Uvh https://repo.zabbix.com/zabbix/4.4/rhel/6/x86_64/zabbix-release-4.4-1.el6.noarch.rpm
CentOS 7
rpm -Uvh https://repo.zabbix.com/zabbix/4.4/rhel/7/x86_64/zabbix-release-4.4-1.el7.noarch.rpm
二、下载和部署
yum install zabbix-agent -y
vi /etc/zabbix/zabbix_agentd.conf
LogFileSize=256
Server=[zabbix server ip]
ServerActive=[zabbix server ip]
Hostname=[ Hostname of client system ]
三、iptables开门
vi /etc/sys*/iptables
Xenserver
-A RH-Firewall-1-INPUT -m conntrack –ctstate NEW -m tcp -p tcp -s kwx.cc –dport 10050 -j ACCEPT
-A RH-Firewall-1-INPUT -m conntrack –ctstate NEW -m tcp -p tcp -s kwx.cc –dport 10051 -j ACCEPT
或CentOS
-I INPUT -p tcp -m tcp -s kwx.cc –dport 10050 -j ACCEPT
-I INPUT -p tcp -m tcp -s kwx.cc –dport 10051 -j ACCEPT
四、启动服务
service zabbix-agent restart
chkconfig zabbix-agent on
service iptables restart