Use Zabbix monitoring and operation of Windows Server 2012 clients

Lab topology configuration
Use Zabbix monitoring and operation of Windows Server 2012 clients
Windows Server 2012 proxy settings AGENT install Windows
Ø set the IP address of the Windows (DHCP to automatically obtain 192.168.228.0 subnet):
Use Zabbix monitoring and operation of Windows Server 2012 clients
Ø 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.
Use Zabbix monitoring and operation of Windows Server 2012 clients
Ø Windows Server2012 host name "Host5:
Use Zabbix monitoring and operation of Windows Server 2012 clients
Ø 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)
Use Zabbix monitoring and operation of Windows Server 2012 clients

Ø 将解压完毕的文件,里边有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”查看帮助
Use Zabbix monitoring and operation of Windows Server 2012 clients

Ø 在CMD命令行安装zabbix agent服务并设置windows自启动服务:
Use Zabbix monitoring and operation of Windows Server 2012 clients

Ø 在“服务”中显示Zabbix Agent进程正在运行:
Use Zabbix monitoring and operation of Windows Server 2012 clients
Zabbix服务器设置
² 备注:zabbix服务器的安装过程请参考PPT
Ø 创建属于Windows系统的主机组
Ÿ 点击->配置->主机群组->创建主机群组:
Use Zabbix monitoring and operation of Windows Server 2012 clients

Use Zabbix monitoring and operation of Windows Server 2012 clients

Ø Click -> Host -> Enter the host name -> select the group (Windows server) -> IP address of the agent's input:
Use Zabbix monitoring and operation of Windows Server 2012 clients

Ø Click -> Templates -> Select -> Template OSWindows-> Add -> Update:
Use Zabbix monitoring and operation of Windows Server 2012 clients
Use Zabbix monitoring and operation of Windows Server 2012 clients
Use Zabbix monitoring and operation of Windows Server 2012 clients

Ø In the System Interface -> Configuration -> Host, display monitor Server2012 Windows
Agent:
Use Zabbix monitoring and operation of Windows Server 2012 clients

Add Monitoring topology
Ø zabbix_agent clients to Windows Server 2012 added to the topology map to graphically display zabbix_agentd client host:
Use Zabbix monitoring and operation of Windows Server 2012 clients
Use Zabbix monitoring and operation of Windows Server 2012 clients
Use Zabbix monitoring and operation of Windows Server 2012 clients

Add a command script
Ø Create a command script to perform operations on zabbix-agent clients:
Use Zabbix monitoring and operation of Windows Server 2012 clients
Ø the operation script editor:
Use Zabbix monitoring and operation of Windows Server 2012 clients
verification process monitoring graphical
Ø display the latest data
?? Click -> Monitoring -> Latest data:
Use Zabbix monitoring and operation of Windows Server 2012 clients

Ø display graphics
?? Click -> Monitoring -> Graphics:
Use Zabbix monitoring and operation of Windows Server 2012 clients
command script
Ø in the menu bar -> Monitoring -> topology, stand-alone graphics, select Close Script
Ø Then zabbix-agent client Windows Server2012 shutdown:
Use Zabbix monitoring and operation of Windows Server 2012 clients

QQ online Zabbix Q group 177,428,068

Guess you like

Origin blog.51cto.com/14010230/2401203