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无法连接到打印机,请检查打印机名并重试 - 配置Windows 共享打印机出错;
WIN7共享打印机无法被WIN11连接,出现错误代码0x0000011b或0x00000709,可能是系统版本不兼容所致。本文提供多个轻量级修复工具,无需安装,双击即用,专为解决此类小问题设计,操作简单,适合普通用户快速修复打印机连接异常。
417 0
|
2月前
|
网络安全 Windows
Windows IIS 10如何配置自签名SSL并实现自动跳转
本文记录了IIS配置自签名证书及HTTPS跳转的注意事项。包括解决443端口占用问题、URL Rewrite插件安装与配置、web.config修改方法,以及避免因旧教程导致的配置错误。
Windows IIS 10如何配置自签名SSL并实现自动跳转
|
2月前
|
C语言 图形学 Windows
Windows下安装和配置GTK4(基于CLion)
本文介绍了作者选择GTK作为C语言图形库的原因,包括代码简洁、控件丰富和界面美观,并分享了在Windows环境下通过MSYS2安装GTK4及在CLion中配置开发环境的详细步骤。
333 0
|
2月前
|
Windows
Windows下版本控制器(SVN)-验证是否安装成功+配置版本库+启动服务器端程序
Windows下版本控制器(SVN)-验证是否安装成功+配置版本库+启动服务器端程序
114 2
|
Windows
Windows下版本控制器(SVN)- 配置版本库
Windows下版本控制器(SVN)- 配置版本库
23 0
|
3月前
|
安全 Shell 开发工具
Windows下使用git配置gitee远程仓库
就在前几天因为一些原因,我的电脑重装了系统,然后再重新配置git的环境的时候就遇到了一些小问题。所以我决定自己写一篇文章,以便以后再配置git时,避免一些错误操作,而导致全网搜方法,找对的文章去找对应的解决方法。下面为了演示方便就拿gitee来演示,不拿GitHub了写文章了。
204 0
|
4月前
|
JSON 安全 数据可视化
Elasticsearch(es)在Windows系统上的安装与部署(含Kibana)
Kibana 是 Elastic Stack(原 ELK Stack)中的核心数据可视化工具,主要与 Elasticsearch 配合使用,提供强大的数据探索、分析和展示功能。elasticsearch安装在windows上一般是zip文件,解压到对应目录。文件,elasticsearch8.x以上版本是自动开启安全认证的。kibana安装在windows上一般是zip文件,解压到对应目录。elasticsearch的默认端口是9200,访问。默认用户是elastic,密码需要重置。
1891 0
|
监控 前端开发 安全
CentOS7 部署 Zabbix 监控平台———监控网络设备,Linux 主机、Windows 主机
Zabbix 能监视各种网络参数,保证服务器系统的安全运营;并提供灵活的通知机制以让系统管理员快速定位/解决存在的各种问题。是一个基于 Web 界面的提供分布式系统监视以及网络监视功能的企业级开源解决方案。
1661 0
CentOS7 部署 Zabbix 监控平台———监控网络设备,Linux 主机、Windows 主机
|
监控 Windows
Zabbix监控Windows客户端设置
Zabbix监控Windows客户端设置
252 0
QGS
|
监控 关系型数据库 MySQL
(Centos7-x86)zabbix5.0—agent2监控MySQL(Windows)
记(Centos7-x86)zabbix5.0—agent2监控MySQL(Windows)
QGS
297 0
(Centos7-x86)zabbix5.0—agent2监控MySQL(Windows)