Windows之Windows 2012上安装zabbix实现监控磁盘IO和SQLServer

zabbix agent 这个页面找到对应的版本下载,然后开始安装zabbix agent端

 

Windows之Windows 2012上安装zabbix实现监控磁盘IO和SQLServer

Windows之Windows 2012上安装zabbix实现监控磁盘IO和SQLServer

Windows之Windows 2012上安装zabbix实现监控磁盘IO和SQLServer

Windows之Windows 2012上安装zabbix实现监控磁盘IO和SQLServer

Windows之Windows 2012上安装zabbix实现监控磁盘IO和SQLServer

Windows之Windows 2012上安装zabbix实现监控磁盘IO和SQLServer

安装结束后来看看zabbix agent端服务有没有启用起来,且启动类型是不是自动

Windows之Windows 2012上安装zabbix实现监控磁盘IO和SQLServer

Windows之Windows 2012上安装zabbix实现监控磁盘IO和SQLServer

如果服务器上启用了防火墙那么还要添加防火墙放行规则

Windows之Windows 2012上安装zabbix实现监控磁盘IO和SQLServer

netsh advfirewall firewall add rule name=zabbix-agentd dir=in action=allow protocol=TCP localport=10050

Windows之Windows 2012上安装zabbix实现监控磁盘IO和SQLServer

Windows之Windows 2012上安装zabbix实现监控磁盘IO和SQLServer

下载zabbix模版:


下载Windows的监控脚本:
下载SQLServer 监控Powershell脚本:

然后在zabbix agent端的配置文件中加入如下配置,然后保存并重启下zabbix agent的服务

###OS
UserParameter=windowspdiskperf.discovery,powershell -NoProfile -ExecutionPolicy Bypass -File C:\Program Files\Zabbix Agent\ps-script\get_pdisks.ps1
UserParameter=windowsldiskperf.discovery,powershell -NoProfile -ExecutionPolicy Bypass -File C:\Program Files\Zabbix Agent\ps-script\get_ldisks.ps1
UserParameter=windowsnetworkperf.discovery,powershell -NoProfile -ExecutionPolicy Bypass -File C:\Program Files\Zabbix Agent\ps-script\get_adapters.ps1
UserParameter=windowsprocessorperf.discovery,powershell -NoProfile -ExecutionPolicy Bypass -File C:\Program Files\Zabbix Agent\ps-script\get_processors.ps1

###SQL Server
UserParameter=sqldatabasename.discovery,powershell -NoProfile -ExecutionPolicy Bypass -File C:\Program Files\Zabbix Agent\ps-script\SQLBaseName_To_Zabbix.ps1

Windows之Windows 2012上安装zabbix实现监控磁盘IO和SQLServer

然后在zabbix的server端上导入如下模版

模版下载:

最后来看看效果
Windows之Windows 2012上安装zabbix实现监控磁盘IO和SQLServer

  • 本文由 发表于 2016年6月24日18:19:53
  • 除非特殊声明,本站文章均为原创,转载请务必保留本文链接
匿名

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: