CentOS 7 安装 Zabbix Agent 5.0

1. 关闭防火墙及 selinux

# systemctl disable firewalld
# systemctl stop firewalld
# firewall-cmd --state
not running
# reboot

 

# vi /etc/selinux/config

 

2. 安装 Zabbix Agent

1)ADDING ZABBIX REPOSITORY

# rpm -Uvh https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm

2)修改zabbix的repo文件中的源地址

vim /etc/yum.repos.d/zabbix.repo
[zabbix]
name=Zabbix Official Repository - $basearch
baseurl=http://mirrors.aliyun.com/zabbix/zabbix/4.0/rhel/7/$basearch/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591

[zabbix-non-supported]
name=Zabbix Official Repository non-supported - $basearch
baseurl=http://mirrors.aliyun.com/zabbix/non-supported/rhel/7/$basearch/
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX
gpgcheck=1

3)安装 zabbix-agent

# yum -y install zabbix-agent

4)修改 agent 配置文件

# vim /etc/zabbix/zabbix_agentd.conf
Server=192.168.190.180
ServerActive=192.168.190.180
Hostname=192.168.190.136

# 192.168.190.180: zabbix-server 的 IP 地址,192.168.190.136 : zabbix-agent 的 IP 地址

 

5)启动 zabbix-agent

# systemctl enable zabbix-agent.service 
# systemctl start zabbix-agent.service

# ps -ef | grep zabbix_agentd

 

3. Zabbix Web 配置主机

1)先创建一个主机群组


 

 

2)创建主机

 

 

 

 

3)添加模板

 

 

4)查看主机

 

 

 

 

posted on 2021-02-09 18:34  bruce_he  阅读(920)  评论(0编辑  收藏  举报