- 1、将下载的客户端解压后的bin和conf目录放置于C盘的zabbix目录下

- 2、客户端的安装,附带卸载
cd c:\zabbix\bin\win64
c:\zabbix\bin\win64>zabbix_agentd.exe -i -c C:\zabbix\conf\zabbix_agentd.win.conf #安装
zabbix_agentd.exe [7244]: service [Zabbix Agent] installed successfully
zabbix_agentd.exe [7244]: event source [Zabbix Agent] installed successfully
c:\zabbix\bin\win64>zabbix_agentd.exe -s -c C:\zabbix\conf\zabbix_agentd.win.conf #启动
zabbix_agentd.exe [8588]: service [Zabbix Agent] started successfully
c:\zabbix\bin\win64>zabbix_agentd.exe -x -c C:\zabbix\conf\zabbix_agentd.win.conf #停止
zabbix_agentd.exe [9116]: service [Zabbix Agent] stopped successfully
c:\zabbix\bin\win64>zabbix_agentd.exe -d -c C:\zabbix\conf\zabbix_agentd.win.conf #卸载
zabbix_agentd.exe [4248]: service [Zabbix Agent] uninstalled successfully
zabbix_agentd.exe [4248]: event source [Zabbix Agent] uninstalled successfully
- 3、关于conf目录下的zabbix_agentd.win.conf的配置项
EnableRemoteCommands=1 #允许在本地执行远程命令
LogRemoteCommands=1 #执行远程命令是否保存操作日志
Server=192.168.10.158 #填写zabbix服务器IP地
Server=192.168.10.158,192.168.10.143 #如果是多个服务端则以,进行分隔
ServerActive=192.168.10.158 #填写zabbix服务器IP地
ServerActive=192.168.10.158,192.168.10.143 #如果是多个服务端则以,进行分隔
Hostname=heyman #zabbix_agent客户端计算机名 (被监控主机)
-
4、管理——脚本——创建脚本如下

-
5、监测中——拓扑图——编辑拓扑图

添加——类型:主机

更新

点击拓扑图中的主机,会看到刚才创建的脚本shutdown,点击shutdown后,客户端将关机。


本文详细介绍Zabbix客户端的安装步骤,包括解压文件、执行安装、启动、停止及卸载命令,同时提供了zabbix_agentd.win.conf配置文件的关键设置说明,如启用远程命令、记录日志、指定服务器IP等,帮助用户快速上手Zabbix监控系统。
4678

被折叠的 条评论
为什么被折叠?



