Zabbix agent for centos6
rpm -Uvh https://repo.zabbix.com/zabbix/6.0/rhel/6/x86_64/zabbix-release-6.0-4.el6.noarch.rpm
yum clean all
yum install zabbix-agent
vim /etc/zabbix/zabbix_agentd.conf
service zabbix-agent restart
chkconfig --level 35 zabbix-agent on
Zabbix agent for Debian12
wget https://repo.zabbix.com/zabbix/6.4/debian/pool/main/z/zabbix-release/zabbix-release_6.4-1+debian12_all.deb
dpkg -i zabbix-release_6.4-1+debian12_all.deb
apt update
apt install zabbix-agent2
- /etc/zabbix/zabbix_agent2.conf
記得變更下列內容
Server=
ServerActive=
systemctl restart zabbix-agent
systemctl enable zabbix-agent
How to Install Zabbix Agent on Rocky Linux/Alma Linux 9
安裝
安裝 zabbix-agent2 優先
- /etc/yum.repos.d/epel.repo
[epel]
...
excludepkgs=zabbix*
rpm -Uvh https://repo.zabbix.com/zabbix/6.4/rhel/9/x86_64/zabbix-release-6.4-1.el9.noarch.rpm
dnf clean all
dnf install -y zabbix-agent
systemctl restart zabbix-agent
systemctl enable zabbix-agent
dnf install -y zabbix-agent2 zabbix-agent2-plugin-*
systemctl restart zabbix-agent2
systemctl enable zabbix-agent2
防火牆設定
sudo firewall-cmd --permanent --zone=public --add-rich-rule='rule family="ipv4" source address="192.168.56.0/16" port protocol="tcp" port="64295" accept'
設定 conf
- /etc/zabbix/zabbix_agentd.conf
Server=192.168.56.71
- /etc/zabbix/zabbix_agent2.conf
Server=192.168.56.71