02:zabbix-agent安装配置 管理

1.1 安装zabbix-agent

  1、安装zabbix-agent

      1. 到server端查看安装的zabbix版本以安装对应agent版本:rpm -qa|grep zabbix

      2. 找到清华大学镜像源找到对应版本的agent:https://mirrors.tuna.tsinghua.edu.cn/zabbix/zabbix/3.4/rhel/7/x86_64/  

      3. 安装:rpm –ivh https://mirrors.tuna.tsinghua.edu.cn/zabbix/zabbix/3.4/rhel/7/x86_64/zabbix-agent-3.4.9-1.el7.x86_64.rpm

  2、修改agent配置文件

vim /etc/zabbix/zabbix_agentd.conf
Server=1.1.1.5
开启zabbix-agent: systemctl start zabbix-agent 查看agent状态:systemctl status zabbix-agent
查看agent是否监听端口:netstat -lntp
查看zabbix_agent 日志tail -f /var/log/zabbix/zabbix_agentd.log

 

猜你喜欢

转载自www.cnblogs.com/xiaonq/p/9117420.html