How to install zabbix-agent on CentOS 7

=============================================================================================session

How to install zabbix-agent on CentOS 7tcp


Step 1: Add Required Repositoryide

#rpm -Uvh http://repo.zabbix.com/zabbix/2.4/rhel/7/x86_64/zabbix-release-2.4-1.el7.noarch.rpmui


Step 2: Install, Activate and Edit configuration filepwa

#yum install zabbix zabbix-agentrem

#systemctl status zabbix-agentcmd

#systemctl enable zabbix-agentit

#vi /etc/zabbix/zabbix_agentd.confio

Server=192.168.1.100class

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

==============================================================================================

相關文章
相關標籤/搜索