一、關閉防火牆web
[root@localhost ~]# systemctl stop firewalldcentos
[root@localhost ~]# systemctl disable firewalldtcp
或者打開tcp的10050端口spa
[root@localhost ~]# firewall-cmd --zone=public --add-port=10050/tcp --permanent3d
[root@localhost ~]# firewall-cmd --reloadrest
[root@localhost ~]# firewall-cmd --list-portserver
二、上傳zabbix-agent軟件包並安裝blog
[root@localhost ~]# yum -y install lrzszcmd
[root@localhost ~]# rz模板
安裝zabbix-agent
rpm -ivh zabbix-agent-3.4.11-1.el7.x86_64.rpm
三、修改配置文件並重啓服務
[root@localhost ~]# vi /etc/zabbix/zabbix_agentd.conf
Server=172.16.102.33 //zabbix-server地址
ServerActive=172.16.102.33 //zabbix-server地址
Hostname=centos_test
[root@localhost ~]# systemctl restart zabbix-agent
四、查看服務狀態
五、在zabbix的web管理頁面上添加監控主機
根據具體狀況選擇相應的模板
等一會邊顯示監控正常