How to install Zabbix Agent v6 on XCP-NG, tested with v8.2.1
I needed to install zabbix agent on some internal servers for monitoring, this is pretty much the process that worked.
Install pcre2 libraries required by Zabbix Agent
rpm -Uvh http://mirror.centos.org/centos/7/os/x86_64/Packages/pcre2-10.23-2.el7.x86_64.rpm
Install Zabbix Agent
rpm -Uvh https://repo.zabbix.com/zabbix/6.0/rhel/7/x86_64/zabbix-agent-6.0.9-release1.el7.x86_64.rpm
Edit firewall configuration
Open iptables configuration file with your editor:
vi /etc/sysconfig/iptables
Add the following line after heart beat section (before DLM)
# Zabbix-Agent
-A RH-Firewall-1-INPUT -m conntrack --ctstate NEW -m tcp -p tcp --dport 10050 -j ACCEPT
Restart iptables firewall:
systemctl restart iptables
Update Zabbix agent config file:
Update necessary configs such as:
- SourceIP
- Server
- ListenIP
- ServerActive
Start the Zabbix agent
systemctl start zabbix-agent
Confirm all is working, finally enable the agent to persist reboots:
systemctl enable zabbix-agent