Lab topology configuration
Windows Server 2012 proxy settings AGENT install Windows
Ø set the IP address of the Windows (DHCP to automatically obtain 192.168.228.0 subnet):
Ø To simplify operation, turn off the Windows Firewall (zabbix server is closed)
If both open, Windows need to be open to allow through the service port (SNMP service). The default firewall has opened to allow the service through.
Ø Windows Server2012 host name "Host5:
Ø Windows_Agent.zip archive will be copied to the Windows directory under the C drive :( Download https://www.zabbix.com/downloads/3.4.6/zabbix_agents_3.4.6.win .zip)
Ø 将解压完毕的文件,里边有bin和conf两个目录,进入到conf目录下,修改zabbix_agentd.win.conf配置文件:
LogFile=C:\Windows\zabbix_agentd\log\zabbix_agentd.log#zabbix agent服务的存放日志路径
Server=192.168.228.130 #zabbix server的IP地址
ListenPort=10050 #zabbix agent的默认端口
ServerActive=192.168.2.205 #zabbix server的IP地址
Hostname=host5 #必须与zabbix server的监控主机名称一致
² 其中Server和ServerActive都指定zabbixServer的IP地址,不同的是,前者是被动后者是主动。也就是说Server这个配置是用来允许172.17.22.121这个ip来我这取数据。而ServerActive的172.17.22.121的意思是,客户端主动提交数据给他。
Ø 以管理员身份运行CMD命令行,具体可以使用“zabbix_agentd.exe --help”查看帮助
Ø 在CMD命令行安装zabbix agent服务并设置windows自启动服务:
Ø 在“服务”中显示Zabbix Agent进程正在运行:
Zabbix服务器设置
² 备注:zabbix服务器的安装过程请参考PPT
Ø 创建属于Windows系统的主机组
点击->配置->主机群组->创建主机群组:
Ø Click -> Host -> Enter the host name -> select the group (Windows server) -> IP address of the agent's input:
Ø Click -> Templates -> Select -> Template OSWindows-> Add -> Update:
Ø In the System Interface -> Configuration -> Host, display monitor Server2012 Windows
Agent:
Add Monitoring topology
Ø zabbix_agent clients to Windows Server 2012 added to the topology map to graphically display zabbix_agentd client host:
Add a command script
Ø Create a command script to perform operations on zabbix-agent clients:
Ø the operation script editor:
verification process monitoring graphical
Ø display the latest data
?? Click -> Monitoring -> Latest data:
Ø display graphics
?? Click -> Monitoring -> Graphics:
command script
Ø in the menu bar -> Monitoring -> topology, stand-alone graphics, select Close Script
Ø Then zabbix-agent client Windows Server2012 shutdown:
QQ online Zabbix Q group 177,428,068