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的主机信息

目录
相关文章
|
19天前
如何隐藏windows10系统任务栏右下角的语言输入法图标?
如何隐藏windows10系统任务栏右下角的语言输入法图标?
|
1月前
|
Ubuntu Linux 数据安全/隐私保护
Windows11 使用 WSL2部署Ubuntu
在管理员PowerShell中运行命令启用Windows子系统Linux和虚拟机平台,但安装Ubuntu时遇到错误。解决方法是下载NoLsp_fix_WSL2工具,以管理员权限进入其目录,使用工具指向WSL的路径(例如 `C:\windows\system32\wsl.exe`)进行修复,然后能成功打开Ubuntu。
39 4
|
1月前
|
安全 Linux Shell
全面对比linux和windows,选择哪个系统比较好
全面对比linux和windows,选择哪个系统比较好
71 0
|
1月前
|
监控 Windows
Windows系统中Wireshark抓包工具的安装使用
Windows系统中Wireshark抓包工具的安装使用
|
4天前
|
人工智能 安全 机器人
AI电销机器人系统源码部署:freeswitch安装Windows
在Windows上安装FreeSWITCH:访问官网下载安装程序,运行并按提示安装;选择安装路径和组件;等待安装完成;配置FreeSWITCH,修改设置;启动服务;测试其功能;如遇问题,参考官方文档或进行调试故障排除。记得定期更新维护以保证稳定安全。
|
7天前
|
网络协议 安全 测试技术
Windows安装禅道系统结合Cpolar实现公网访问内网BUG管理服务
Windows安装禅道系统结合Cpolar实现公网访问内网BUG管理服务
|
7天前
|
Apache 数据安全/隐私保护 Windows
如何在Windows部署TortoiseSVN客户端并实现公网连接内网VisualSVN服务端
如何在Windows部署TortoiseSVN客户端并实现公网连接内网VisualSVN服务端
|
7天前
|
存储 安全 文件存储
Windows系统本地部署HFS并结合内网穿透实现公网访问本地存储文件
Windows系统本地部署HFS并结合内网穿透实现公网访问本地存储文件
Windows系统本地部署HFS并结合内网穿透实现公网访问本地存储文件
|
25天前
|
应用服务中间件 nginx Windows
windows下Nginx+RTMP部署
windows下Nginx+RTMP部署
21 0
|
1月前
|
存储 网络安全 数据安全/隐私保护
Windows Server 2019 IIS HTTPS证书部署流程详解
Windows Server 2019 IIS HTTPS证书部署流程详解

推荐镜像

更多