centos7 安装部署zabbix客户端

1、下载安装zabbix-agent:

# rpm -ivh http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-2.el7.noarch.rpm
# yum install -y zabbix-agent

2、修改zabbix-agent配置:

# vim /etc/zabbix/zabbix_agentd.conf
    Server=192.168.0.1     //默认的Server=172.0.0.1,ip地址为zabbix服务端的ip地址(被动模式)
    ServerActive=192.168.0.1 //默认的ServerActive=127.0.0.1,ip为zabbix-server的ip地址(主动模式) 
  Hostname=Zabbix server //指定服务器主机名称,这个是在web设置步骤3时候设置的;

3、启动服务:

# systemctl start zabbix-agent //开启zabbix-agent服务
# systemctl enable zabbix-agent //设置开机启动
# ps aux|grep zabbix //查看服务是否启动
# netstat -lntp |grep zabbix //查看监听端口,客户端端口为10050

猜你喜欢

转载自www.cnblogs.com/carriezhangyan/p/10818884.html