zabbix5客户端安装部署
客户端信息:
hostname:bhtec03
内网ip:xx.xx.xx.xx
因为在同一局域网内,而且服务端和客户端之间可以互通,所以不需要开安全组
安装客户端zabbix-agent
添加源
yum clean all
下载安装zabbix客户端
yum install zabbix-agent
rpm -qa |grep zabbix
修改客户端配置;
vim /etc/zabbix/zabbix_agentd.conf
grep -n '^'[a-Z] /etc/zabbix/zabbix_agentd.conf
13:PidFile=/var/run/zabbix/zabbix_agentd.pid
32:LogFile=/var/log/zabbix/zabbix_agentd.log
43:LogFileSize=0
117:Server=xx.xx.xx.xx #server端IP
158:ServerActive=xx.xx.xx.xx #server端IP
169:Hostname=xx.xx.xx.xx #客户端IP
309:Include=/etc/zabbix/zabbix_agentd.d/*.conf
修改services
sed -i '/matahari/azabbix-agent 10050/tcp #Zabbix Agent' /etc/services
sed -i '/matahari/azabbix-agent 10050/udp #Zabbix Agent' /etc/services
tail -2 /etc/services
启动服务
systemctl restart zabbix-agent
systemctl enable zabbix-agent
ps -ef |grep zabbix && sudo netstat -lntup |grep zabbix && lsof -i:10050