Saturday, June 27, 2020

Install Zabbix Agent on Centos 7

Description: Here I have explained how to install Zabbix Agent on Centos 7

Procedure: Below is the procedure to install Zabbix agent on Centos 7
  • Update and Upgrade packages on systems 
  # yum update
# yum upgrade
  • Install Zabbix Repository
# yum install https://repo.zabbix.com/zabbix/4.2/rhel/7/x86_64/zabbix-release-4.2-1.el7.noarch.rpm
  • Install Zabbix Agent on CentOS 7
# yum install zabbix-agent
  • Once the installation completed configure zabbix agent in order to communicate Zabbix server. The default file is /etc/zabbix/zabbix_agentd.conf 
  • Edit server details as follow.
Server=103.67.236.58
ServerActive=103.67.236.58
Hostname=test1.example.com
  • Configure firewall to allow traffic port for passive check
firewall-cmd --add-port=10050/tcp --permanent 
firewall-cmd --reload
  • Start and Enable service boot time
systemctl start zabbix-agent
systemctl enable zabbix-agent
  • Add Centos server from Zabbix

No comments:

Post a Comment