CentOS 安装 zabbix agent-agent 3.2版本

2016/12/28 posted in  linux
  • release

公司用的比较多的两个操作系统ubuntu和centos,后面也主要维护这两个操作系统。前面已经介绍过ubuntu下面安装zabbix了,这里介绍一下CentOS下面zabbix-agent 3.2版本的安装。

关闭selinux

  sed -i "s/SELINUX=enforcing/SELINUX=disabled/" /etc/selinux/config
  setenforce 0  

防火墙设置

允许zabbix-agent的10050端口通过

firewall-cmd --permanent --add-port=10050/tcp
firewall-cmd --reload 

安装zabbix 3.2版本

[root@localhost opt]# rpm -ivh http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-release-3.2-1.el7.noarch.rpm

[root@localhost opt]# yum install zabbix-sender zabbix-agent zabbix

[root@localhost opt]# rpm -qa|grep zabbix-agent
zabbix-agent-3.2.3-1.el7.x86_64

[root@localhost opt]# vi /etc/zabbix/zabbix_agentd.conf

centos 6版本

rpm -ivh http://repo.zabbix.com/zabbix/3.2/rhel/6/x86_64/zabbix-release-3.2-1.el6.noarch.rpm 

[Index of /zabbix/3.0/rhel/6/x86_64](http://repo.zabbix.com/zabbix/3.0/rhel/6/x86_64/)

重启zabbix服务,并设置成为开机启动

[root@localhost opt]# systemctl restart zabbix-agent.service
[root@localhost opt]# systemctl enable zabbix-agent.service