在 zabbix agent 这个页面找到对应的版本下载,然后开始安装zabbix agent端
安装结束后来看看zabbix agent端服务有没有启用起来,且启动类型是不是自动
如果服务器上启用了防火墙那么还要添加防火墙放行规则
netsh advfirewall firewall add rule name=zabbix-agentd dir=in action=allow protocol=TCP localport=10050
下载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
然后在zabbix的server端上导入如下模版
模版下载:
您可以选择一种方式赞助本站
支付宝扫一扫赞助
微信钱包扫描赞助
赏