版权声明:©来自CSDN博客作者"Debug The Life"的原创作品,如需转载,请注明出处。 https://blog.csdn.net/zhaoxixc/article/details/82866562
- 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后,客户端将关机。