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

下载SQLServer的监控脚本:


下载Windows的监控脚本:

然后在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

您可以选择一种方式赞助本站

支付宝扫一扫赞助

微信钱包扫描赞助

lookback

发表评论

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