Zabbix【部署 04】 Windows系统安装配置agent及agent2

简介: Zabbix【部署 04】 Windows系统安装配置agent及agent2

1.下载

选择对应的ZABBIX VERSION版本:

下载zip文件或查看安装说明:

官网 的安装说明:

2.agent

2.1 准备

下载对应版本的zip文件并解压,选择一个文件夹放置zabbix_agentd.exe和配置文件zabbix_agentd.conf。例如:

# 1.在 e 盘创建 zabbix 文件夹E
E:\zabbix
# 拷贝解压包内 bin\zabbix_agentd.exe 和 conf\zabbix_agentd.conf 文件到 e:\zabbix
# 2.修改 zabbix_agentd.conf 文件 
# 日志文件【默认在C:盘】
LogFile=E:\zabbix\zabbix_agentd.log
# zabbix-server 服务的IP地址【如果Server部署在云服务器则需要配置云服务器的外网IP】
Server=127.0.0.1
ServerActive=127.0.0.1
# making sure to specify a correct "Hostname" parameter
Hostname="Hostname"

Hostname配置参数的影响:

页面没有配置相应的Hostname会报错:

# 配置
Hostname=Windows host
# 报错
no active checks on server [xxx.xxx.x.xxx:10051]: host [Windows host] not found
# 原因
# Web 上未配置 Name 是 Windows host 的 Hosts

2.2 安装

使用以下命令安装 zabbix agent 作为 Windows 服务。

# 安装命令
E:\> E:\zabbix\zabbix_agentd.exe -c E:\zabbix\zabbix_agentd.conf -i
zabbix_agentd [xxxx]: 'Zabbix Agentd' installed successfully

打开任务管理器,启动agent服务。

2.3 其他操作

可以在一台主机上运行多个agent实例。单个实例可以使用默认配置文件,也可以使用命令行中指定的配置文件。对于多个实例,每个agent实例必须有自己的配置文件(其中一个实例可以使用默认配置文件)。Zabbix agent 可以使用以下命令行参数:

Parameter Description
UNIX and Windows agent
-c --config Path to the configuration file. You may use this option to specify a configuration file that is not the default one. On UNIX, default is /usr/local/etc/zabbix_agentd.conf or as set by compile-time variables –sysconfdir or –prefix On Windows, default is c:\zabbix_agentd.conf
-p --print Print known items and exit. Note: To return user parameter results as well, you must specify the configuration file (if it is not in the default location).
-t --test Test specified item and exit. Note: To return user parameter results as well, you must specify the configuration file (if it is not in the default location).
-h --help Display help information
-V --version Display version number
UNIX agent only
-R --runtime-control Perform administrative functions. See runtime control.
Windows agent only
-m --multiple-agents Use multiple agent instances (with -i,-d,-s,-x functions). To distinguish service names of instances, each service name will include the Hostname value from the specified configuration file.
Windows agent only (functions)
-i --install Install Zabbix Windows agent as service
-d --uninstall Uninstall Zabbix Windows agent service
-s --start Start Zabbix Windows agent service
-x --stop Stop Zabbix Windows agent service

Specific examples of using command line parameters:

  • printing all built-in agent items with values
  • testing a user parameter with “mysql.ping” key defined in the specified configuration file
  • installing a “Zabbix Agent” service for Windows using the default path to configuration file c:\zabbix_agentd.conf
  • installing a “Zabbix Agent [Hostname]” service for Windows using the configuration file zabbix_agentd.conf located in the same folder as agent executable and make the service name unique by extending it by Hostname value from the config file

3.agent2

安装方式跟agent一致,但是同样的配置,图表还是有区别的:

  • agent主机信息

  • agent2的主机信息

目录
相关文章
|
1月前
|
安全 数据安全/隐私保护 Windows
如何在Windows 10系统中查看已连接WiFi密码-亲测可用-优雅草卓伊凡
如何在Windows 10系统中查看已连接WiFi密码-亲测可用-优雅草卓伊凡
83 15
如何在Windows 10系统中查看已连接WiFi密码-亲测可用-优雅草卓伊凡
|
22天前
|
人工智能 API 调度
微软开源Windows桌面智能体操作系统!UFO²:一句话调度多应用,自动协同工作
UFO²是微软推出的Windows桌面多智能体操作系统,通过中央HostAgent协调多个AppAgent实现跨应用任务自动化,结合GUI交互和原生API调用提升执行效率,支持虚拟桌面隔离运行。
128 3
微软开源Windows桌面智能体操作系统!UFO²:一句话调度多应用,自动协同工作
|
29天前
|
关系型数据库 虚拟化 UED
Omnissa Horizon Windows OS Optimization Tool 2503 - Windows 系统映像优化工具
Omnissa Horizon Windows OS Optimization Tool 2503 - Windows 系统映像优化工具
58 7
Omnissa Horizon Windows OS Optimization Tool 2503 - Windows 系统映像优化工具
|
2月前
|
Linux 虚拟化 Docker
Linux服务器部署docker windows
在当今软件开发中,Docker成为流行的虚拟化技术,支持在Linux服务器上运行Windows容器。流程包括:1) 安装Docker;2) 配置支持Windows容器;3) 获取Windows镜像;4) 运行Windows容器;5) 验证容器状态。通过这些步骤,你可以在Linux环境中顺利部署和管理Windows应用,提高开发和运维效率。
238 1
|
2月前
|
算法 关系型数据库 测试技术
WHQL微软驱动签名方案,让驱动程序在Windows系统流畅运行
WHQL认证(Windows徽标认证)是微软设立的严格测试标准,旨在确保驱动程序的兼容性、稳定性和互通性。本文介绍了三种WHQL微软驱动签名方案:单系统签名、多系统签名和硬件兼容性测试方案,分别满足不同开发商的需求。通过WHQL认证,不仅能消除Windows安装警告,提升用户体验,还能获得“Designed for Windows”徽标授权,入列全球Windows Catalog及HCL产品表,提升品牌权威性和采购优先权。此外,访问微软OCA可获取错误反馈,助力产品质量改进。选择合适的签名方案,让驱动在Windows系统中流畅运行!
|
2月前
|
Windows
Windows系统云服务器配置多用户登录
本教程介绍了在Windows云服务器上配置远程桌面服务的详细步骤,包括安装桌面会话主机和远程桌面授权、允许多用户远程连接以及配置新用户并加入远程桌面用户组。通过添加角色和功能、设置组策略以及管理用户权限,实现多用户同时登录和远程访问。按照指引操作,可顺利完成服务器的远程访问配置,提升管理和使用效率。
188 0
|
4月前
|
监控 搜索推荐 开发工具
2025年1月9日更新Windows操作系统个人使用-禁用掉一下一些不必要的服务-关闭占用资源的进程-禁用服务提升系统运行速度-让电脑不再卡顿-优雅草央千澈-长期更新
2025年1月9日更新Windows操作系统个人使用-禁用掉一下一些不必要的服务-关闭占用资源的进程-禁用服务提升系统运行速度-让电脑不再卡顿-优雅草央千澈-长期更新
296 2
2025年1月9日更新Windows操作系统个人使用-禁用掉一下一些不必要的服务-关闭占用资源的进程-禁用服务提升系统运行速度-让电脑不再卡顿-优雅草央千澈-长期更新
|
5月前
|
Ubuntu 网络协议 Linux
快速部署WSL(Windows Subsystem for Linux)
WSL提供了一种轻量级的方法,使开发者能够在Windows上无缝运行Linux环境。通过本文介绍的步骤,可以快速安装、配置和使用WSL,以满足开发和测试的需求。
733 8
|
6月前
|
安全 Windows
【Azure Cloud Service】在Windows系统中抓取网络包 ( 不需要另外安全抓包工具)
通常,在生产环境中,为了保证系统环境的安全和纯粹,是不建议安装其它软件或排查工具(如果可以安装,也是需要走审批流程)。 本文将介绍一种,不用安装Wireshark / tcpdump 等工具,使用Windows系统自带的 netsh trace 命令来获取网络包的步骤
149 32
|
6月前
|
存储 负载均衡 Java
如何配置Windows主机MPIO多路径访问存储系统
Windows主机多路径(MPIO)是一种技术,用于在客户端计算机上配置多个路径到存储设备,以提高数据访问的可靠性和性能。本文以Windows2012 R2版本为例介绍如何在客户端主机和存储系统配置多路径访问。
379 13
如何配置Windows主机MPIO多路径访问存储系统

热门文章

最新文章

推荐镜像

更多