步骤 4 – 启用/启动 Zabbix 代理
# Systemctl enable zabbix-agent # Systemctl start zabbix-agent
步骤 3 – 编辑 Zabbix 代理配置
Zabbix Agent安装成功后,我们需要在Zabbix Agent配置文件/etc/zabbix/zabbix_agentd.conf中添加Zabbix监控服务器的IP
# vi /etc/zabbix/zabbix_agentd.conf ### Option: Server # List of comma delimited IP addresses (or hostnames) of Zabbix servers. # Incoming connections will be accepted only from the hosts listed here. # If IPv6 support is enabled then '127.0.0.1', '::127.0.0.1', '::ffff:127.0.0.1' are treated equally. ## Mandatory: no # Default: # Server= Server=192.168.1.201 # Add here the IP of your Zabbix Server #### Option: ServerActive # ServerActive= #ServerActive=192.168.1.201 # Add here the IP of your Zabbix Server #Hostname=web01.onitroad.com #Add here the Hostname of your server
步骤 5 – 在 Zabbix 前端配置主机
要在 Zabbix 前端添加远程主机服务器,请执行以下步骤:
1 转到:配置 -> 主机
2 点击右侧的创建主机
3 填写远程主机服务器的以下参数
*输入主机名:远程系统的主机名
*可见名称:zabbix中显示的名称
*组:为主机选择所需的组
*代理接口:我们主机的IP4 转到模板选项卡并为主机选择所需的模板
5 点击添加
在 Ubuntu 18.04 LTS 上安装 Zabbix Server 4.x 之后。
在本文中将演示如何在 Debian 9/8 操作系统上安装 zabbix agent 4.x。
步骤 2 – 安装 Zabbix 代理
# apt-get update # apt-get install zabbix-agent -y
步骤 1 – 添加所需的存储库
在首先安装 Zabbix Agent 4.x 之前,我们应该添加 Zabbix apt 存储库:
对于 Debian 9:
# wget http://repo.zabbix.com/zabbix/4.1/debian/pool/main/z/zabbix-release/zabbix-release_4.1-1%2Bstretch_all.deb # dpkg -i zabbix-release_4.1-1+stretch_all.deb
对于 Debian 8:
# wget http://repo.zabbix.com/zabbix/4.1/debian/pool/main/z/zabbix-release/zabbix-release_4.1-1%2Bjessie_all.deb # zabbix-release_4.1-1+jessie_all.deb
日期:2020-06-02 22:19:00 来源:oir作者:oir