Bootstrap

zabbix-agent安装

环境准备

系统:Centos7
服务:Zabbix 3.0.32

一.安装Zabbix_agent 服务

1.安装zabbix 3.0 yum源

rpm -vhi http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm

2.安装Zabbix_agent

yum install zabbix-agent -y

3.修改配置文件

vim /etc/zabbix/zabbix_agentd.conf

# zabbix server端IP
Server=zabbix_server_ip
# zabbix server端IP
ServerActive=zabbix_server_ip
# zabbix客户端主机名
Hostname=zabbix_agent_hostname

4.启动zabbix_agent服务

systemctl start zabbix-agent
systemctl enable zabbix-agent

二.web端添加操作

登陆zabbix-server Web界面,Configuration–>Hosts–>Create host
在这里插入图片描述
点击Templates 设置关联模板Template OS Linux 并add。
在这里插入图片描述
现在去Configuration–> Hosts中查看刚刚新加的主机,availability已经变成绿色了,代表成功了。如下:
在这里插入图片描述

;