快轉到主要內容

deploy Zabbix Agent

PolloChang
作者
PolloChang
我是一隻雞

Zabbix agent for centos6
#

1
2
3
4
5
6
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
#

1
2
3
4
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

記得變更下列內容

1
2
Server=
ServerActive=
1
2
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
1
2
3
[epel]
...
excludepkgs=zabbix*
1
2
3
4
5
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
1
2
3
dnf install -y zabbix-agent2 zabbix-agent2-plugin-*
systemctl restart zabbix-agent2
systemctl enable zabbix-agent2

防火牆設定
#

1
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
1
Server=192.168.56.71
  • /etc/zabbix/zabbix_agent2.conf
1
Server=192.168.56.71