? ?前言:上一篇我們完成了Zabbix Server的安裝,如果需要監(jiān)控其他服務(wù)器笛洛,那么我們就需要在其他服務(wù)器上安裝zabbix-agent
1.zabbix_agent 下載
1.1 導(dǎo)入官方repo源
rpm -Uvh https://repo.zabbix.com/zabbix/4.0/rhel/5/x86_64/zabbix-release-4.0-1.el5.noarch.rpm
1.2 清空緩存數(shù)據(jù)
yum clean all
2.zabbix_agent 安裝
yum install zabbix-agent
3.配置Zabbix Agent文件
執(zhí)行命令:vim /etc/zabbix/zabbix_agentd.conf
Server=[zabbix server ip]? ? //zabbix server ip為之前安裝zabbix server服務(wù)器的ip
ServerActive=[zabbix server ip]? ??//zabbix server ip為之前安裝zabbix server服務(wù)器的ip
Hostname=[ Hostname of client system ]? //本主機(jī)名
4.重啟Zabbix Agent并添加開機(jī)啟動(dòng)
service zabbix-agent restart
chkconfig zabbix-agent on
5.在Zabbix?Server添加這臺需要被監(jiān)控的服務(wù)器
當(dāng)出現(xiàn)這種報(bào)錯(cuò)的時(shí)候夏志,需要檢查這臺服務(wù)器的10050端口是否開放。
配置成功后我們就可以在監(jiān)測中看到這臺服務(wù)器的參數(shù)