Zabbix agent安装

mac2022-06-30  102

四、Zabbix agent安装4.1 引导zabbix3.4的yum源# rpm -ivh http://repo.zabbix.com/zabbix/3.4/rhel/6/x86_64/zabbix-release-3.4-1.el6.noarch.rpm

4.2 ​​​​​​​​​​​​​​安装zabbix-agent# yum install zabbix zabbix-agent zabbix-get zabbix-sender -y

4.3 修改agent配置# vim /etc/zabbix/zabbix_agentd.conf

Server=192.168.0.xx      #填写Server的IP地址

ServerActive=192.168.0.xx  #修改为Server的IP地址

Hostname=zabbix.agent01    #填写本机的HostName,注意Server端要能解析

UnsafeUserParameters=1   #是否允许自定义的key,1为允许,0为不允许

#Include= etc/zabbix/zabbix_agentd.conf.d/   这个选项不要配置,否则会造成agent 查找conf 出现递归,无法启动。

4.4 服务端添加agent主机映射# vim /etc/hosts

192.168.0.xxx   zabbix.agent01        //添加

4.5 启动zabbix agent 服务,并设置开机自启# chkconfig --add /etc/init.d/zabbix-agent

# chkconfig zabbix-agent on

# service zabbix-agent start

4.6 ​​​​​​​在web 页面中添加zabbix-agent选择 配置===》主机 ===》创建主机

转载于:https://www.cnblogs.com/tyindon/p/10419438.html

相关资源:利用ansible 自动安装zabbix agent的 role
最新回复(0)