安装zabbix-agent

yum install zabbix-agent -y

CentOs7安装配置zabbix3.4(二)--安装zabbix-agent

确认安装版本。

修改zabbix-agent配置文件

#备份配置文件
cp zabbix_agentd.conf zabbix_agentd.conf.bak
#修改后的配置文件
cat zabbix_agentd.conf
# This is a configuration file for Zabbix agent daemon (Unix)
# To get more information about Zabbix, visit http://www.zabbix.com
PidFile=/var/run/zabbix/zabbix_agentd.pid
LogFile=/var/log/zabbix/zabbix_agentd.log
LogFileSize=0
Server=192.168.10.100
ServerActive=192.168.10.100
Hostname=Client.ifeng.com
Include=/etc/zabbix/zabbix_agentd.d/*.conf

备注:此处需要注意server是被动监控和serveractive是主动监控,hostname需要和主机的保持一致。

检测配置文件并启动服务

zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf
systemctl start zabbix-agent
systemctl enable zabbix-agent

在server端添加监控主机

CentOs7安装配置zabbix3.4(二)--安装zabbix-agent

CentOs7安装配置zabbix3.4(二)--安装zabbix-agent

 

CentOs7安装配置zabbix3.4(二)--安装zabbix-agent

 

 添加完毕收,稍后片刻,便可在gtaphs页面看到相关数据了

CentOs7安装配置zabbix3.4(二)--安装zabbix-agent

 

 至此,zabbix-agent端安装部署完毕。

 

相关文章:

  • 2021-12-07
  • 2021-10-14
  • 2021-08-19
  • 2022-01-20
  • 2021-04-01
  • 2021-08-19
  • 2021-12-27
  • 2021-08-22
猜你喜欢
  • 2021-12-08
  • 2021-12-24
  • 2022-01-06
  • 2021-10-09
  • 2021-10-01
  • 2021-12-12
  • 2021-12-11
相关资源
相似解决方案