windows server安装zabbix-agent
1、准备安装包;
下载链接:https://www.zabbix.com/downloads/3.4.0/zabbix_agents_3.4.0.win.zip
2、在C盘下创建一个zabbix目录,并将下载的压缩包解压进c:\zabbix
3、编辑配置文件:C:\zabbix\conf\zabbix_agentd.win.conf 先清空文件,再写入;
以下为截图:
以下为文本:
Hostname=172.16.0.115
LogFile=c:\zabbix\zabbix_agentd.log
Server=172.16.0.70
#StartAgents=0
#StartAgents=3
ServerActive=172.16.0.70
RefreshActiveChecks=120
#BufferSize=10000
#MaxLinesPerSecond=200
Timeout=30
UnsafeUserParameters=1
EnableRemoteCommands=1
PerfCounter=UserPerfCountercpu,"\Processor Information(_Total)\% Processor Time",1
UserParameter=system.os,wmic os get caption | findstr /v "Caption"
UserParameter=server_type,wmic csproduct get name | findstr /v "Name"
UserParameter=serial_number,wmic bios get serialnumber | findstr /v "SerialNumber"
UserParameter=memory_sn,wmic memorychip get SerialNumber | findstr /v "SerialNumber"
UserParameter=memory_part,wmic memorychip get PartNumber | findstr /v "PartNumber"
UserParameter=memory_speed,wmic memorychip get Speed | findstr /v "Speed"
4、将Zabbix Agent安装为Windows系统的服务,在windows控制台下执行以下命令:
C:\zabbix\bin\win64>zabbix_agentd.exe -i -c c:\zabbix\conf\zabbix_agentd.win.conf
5、启动zabbix-agent
C:\zabbix\bin\win64>zabbix_agentd.exe -c c:\zabbix\conf\zabbix_agentd.win.conf -s
6、以上两个步骤如果都成功了,可以用命令查看一下端口;
C:\zabbix\bin\win64>netstat -ano |findstr 10050
7、在防火墙中开启10050端口;
中间这两步直接点“下一步”;
8、在zabbix-server的web端“创建主机”;
然后选择模板,当然前提是你已经有Windows server的模板了;
9、主机创建完以后,应该就有图了;