```手工安装法
关闭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
当然。你也可以关闭防火墙:
systemctl stop firewalld
systemctl disable firewalld
安装zabbix 软件源
rpm -ivh http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-release-3.2-1.el7.noarch.rpm
安装zabbix-agent
yum install zabbix-sender zabbix-agent zabbix-get
这里如果报错建议多试几次,可能是网络不好或者rp太差,亲测是可以用的。
在 /etc/zabbix/zabbix_agentd.conf 中更改:
Server=<zbx-server的ip>
ServerActive=<zbx-server的ip>
Hostname=<本机的名字>
设置启动和开机项
systemctl start zabbix-agent.service
systemctl enable zabbix-agent.service
自动安装、批量安装
使用ansible进行操作,ansible相关请见笔者博文。代码地址https://github.com/lyjason/ansible/tree/master/zabbix
centos7安装zabbix-agent
转载文章标签 zabbix_agent 文章分类 开源
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
虚拟机安装CentOS7
本章节我们将学习如何安装创建一个Linux学习环境。
CentOS VMware 云计算 系统 运维 -
centos7 与 ubuntu 20.04 安装zabbix-agent 5.0
centos7 与 ubuntu 20.04 安装zabbix-agent 5.0
centos7 与 ubuntu 20. -
Centos7 系统上zabbix-agent一键脚本
Centos7 系统上zabbix-agent一键部署脚本
zabbix-agent一键脚本 -
zabbix-agent脚本安装
zabbix-agent批量安装
zabbix-agent 脚本安装 -
zabbix-agent脚本安装2
zabbix-agent脚本安装2
脚本 agent zabbix -
zabbix-agent安装及配置
zabbix_agent安装及配置
zabbix_agent安装及配置