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)查看主機

 

 

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM