Installing Zabbix Agent on XCP-NG v8.2.1

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

Install Zabbix Agent

rpm -Uvh

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