=============================================================================================
How to install zabbix-agent on CentOS 7
Step 1: Add Required Repository
#rpm -Uvh http://repo.zabbix.com/zabbix/2.4/rhel/7/x86_64/zabbix-release-2.4-1.el7.noarch.rpm
Step 2: Install, Activate and Edit configuration file
#yum install zabbix zabbix-agent
#systemctl status zabbix-agent
#systemctl enable zabbix-agent
#vi /etc/zabbix/zabbix_agentd.conf
Server=192.168.1.100
Hostname=host1
#systemctl start zabbix-agent
Step 3: Open zabbix-agent Lisenting port TCP-10050 on firewall
查看防火墙各zone在运行的服务及端口
#firewall-cmd --list-all-zones
添加防火墙监听zabbix-agent TCP-10050
#firewall-cmd --zone=public --add-port=10050/tcp --permanent
使生效
#firewall-cmd --reload
若从防火墙中删除zabbix-agent TCP-10050
firewall-cmd --zone=public --remove-port=10050/tcp --permanent
使生效
firewall-cmd --reload
查看session
netstat -tpwau
==============================================================================================
本文出自 “sukhoi” 博客,谢绝转载!
How to install zabbix-agent on CentOS 7
原文地址:http://sukhoi.blog.51cto.com/229761/1685396