Leif160519的blog

填写zabbix-server地址,之后无脑下一步即可。

安装完成之后会在服务中创建一个zabbix agent服务

目录结构:

agent安装与卸载(注意得以管理员运行终端)
cmd /c "C:\Program Files\Zabbix Agent\zabbix_agentd.exe -c zabbix_agentd.conf -i"
cmd /c "C:\Program Files\Zabbix Agent\zabbix_agentd.exe -c zabbix_agentd.conf -s"
cmd /c "C:\Program Files\Zabbix Agent\zabbix_agentd.exe -c zabbix_agentd.conf -x"
cmd /c "C:\Program Files\Zabbix Agent\zabbix_agentd.exe -c zabbix_agentd.conf -d"
参数解释:
查看Windows端口使用
C:\Users\Administrator>netstat -ano|findstr "10050"
TCP 0.0.0.0:10050 0.0.0.0:0 LISTENING 8980
TCP [::]:10050 [::]:0 LISTENING 8980
启动成功后生成一个记录日志

typeperf -qx > c:\xx.txt
生成一个xx.txt文件

查找自己想要监控的信息

在zabbix_agentd.conf配置文件最后添加如下内容:
PerfCounter = UserPerfCountercpu,"\Processor Information(_Total)\% Processor Time",3
PerfCounter = UserPerfCountercpuUserTime,"\Processor Information(_Total)\% User Time",3
PerfCounter = UserPerfCounterFileSystemBytesWritten,"\FileSystem Disk Activity(_Total)\FileSystem Bytes Written",3
PerfCounter = UserPerfCounterFileSystemBytesRead,"\FileSystem Disk Activity(_Total)\FileSystem Bytes Read",3
PerfCounter = UserPerfCounterNetworkCurrentBandwidth,"\Network Interface(Intel[R] 82574L Gigabit Network Connection)\Current Bandwidth",3

说明:
PerfCounter:固定写法
UserPerfCountercpu:自定义名称
"Processor Information(_Total)\% Processor Time":监控项
3:时间秒
去服务中重启zabbix客户端
Windows的主机群组







以此类推新建剩余的几个
监控项

图形

给主机添加模板




zabbix监控windows服务器
Zabbix 4.4 监控 Windows Server 2016
“The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time.” – Tom Cargill
标 题:zabbix 4.4.7 监控Windows