标签:配置文件 关闭 span 开机 image http user 文件 模板
一、下载zabbix_agents_3.0.4.win.zip
修改三个参数:
#找到conf下的配置文件 zabbix_agentd.win.conf ,修改LogFile、Server、、ServerActive、Hostname这四个参数。具体配置如下: LogFile=c:\zabbix_agentd.log #默认参数,启动后会自动生成。 Server=192.168.30.141 #被监控主机的IP地址 Hostname=WIN-194215QI0VR #被监控主机名称 ServerActive=192.168.30.141 #zabbix server地址 #其中logfile是zabbix日志存放地址。Server是zabbix服务端ip地址。Hostname是本机机器名。
#查看windows主机名称:
C:\Users\Administrator>hostname WIN-194215QI0VR
#启动zabbix-agent服务
开始--->运行:cmd (记得以管理员身份运行,否则会造成服务无法成功启动)
C:\zabbix\bin\win64>zabbix_agentd.exe -c C:\zabbix\conf\zabbix_agentd.win.conf -i zabbix_agentd.exe [304]: service [Zabbix Agent] installed successfully zabbix_agentd.exe [304]: event source [Zabbix Agent] installed successfully
#把服务设置为开机自动启动
#查看zabbix-agnet端口:10050
C:\Users\Administrator>netstat -an | find "10050" TCP 0.0.0.0:10050 0.0.0.0:0 LISTENING TCP 192.168.30.141:10050 192.168.30.137:46121 TIME_WAIT TCP 192.168.30.141:10050 192.168.30.137:46125 TIME_WAIT TCP 192.168.30.141:10050 192.168.30.137:46127 TIME_WAIT TCP 192.168.30.141:10050 192.168.30.137:46128 TIME_WAIT TCP 192.168.30.141:10050 192.168.30.137:46130 TIME_WAIT TCP 192.168.30.141:10050 192.168.30.137:46133 TIME_WAIT TCP 192.168.30.141:10050 192.168.30.137:46136 TIME_WAIT TCP 192.168.30.141:10050 192.168.30.137:46137 TIME_WAIT TCP 192.168.30.141:10050 192.168.30.137:46140 TIME_WAIT TCP 192.168.30.141:10050 192.168.30.137:46142 TIME_WAIT TCP 192.168.30.141:10050 192.168.30.137:46144 TIME_WAIT TCP 192.168.30.141:10050 192.168.30.137:46146 TIME_WAIT TCP 192.168.30.141:10050 192.168.30.137:46149 TIME_WAIT TCP 192.168.30.141:10050 192.168.30.137:46181 TIME_WAIT TCP 192.168.30.141:10050 192.168.30.137:46185 TIME_WAIT TCP 192.168.30.141:10050 192.168.30.137:46188 TIME_WAIT TCP 192.168.30.141:10050 192.168.30.137:46189 TIME_WAIT TCP 192.168.30.141:10050 192.168.30.137:46192 TIME_WAIT TCP 192.168.30.141:10050 192.168.30.137:46194 TIME_WAIT TCP 192.168.30.141:10050 192.168.30.137:46195 TIME_WAIT TCP 192.168.30.141:10050 192.168.30.137:46197 TIME_WAIT TCP 192.168.30.141:10050 192.168.30.137:46200 TIME_WAIT TCP 192.168.30.141:10050 192.168.30.137:46201 TIME_WAIT TCP 192.168.30.141:10050 192.168.30.137:46203 TIME_WAIT TCP 192.168.30.141:10050 192.168.30.137:46208 TIME_WAIT TCP 192.168.30.141:10050 192.168.30.137:46210 TIME_WAIT TCP [::]:10050 [::]:0 LISTENING
#记得关闭windows防火墙。
二、监控windows主机
添加windows模板
等待几分钟,就生效了。
#查看图形
标签:配置文件 关闭 span 开机 image http user 文件 模板
原文地址:http://www.cnblogs.com/nulige/p/7100679.html