Hyper-V Template for Zabbix

Well after after a few false starts I have my template for Hyper-V working in Zabbix. The template will auto discover virtual machines running on a Hyper-V 3.0 server. Template will monitor status, CPU Usage, Memory usage, and uptime. 

I have tested with Zabbix 2.0 and Windows 2012 Server and Hyper-V Server 2012. Still working on Windows 2008 R2.

Link to zabbix template: Hyper-V Zabix Template
Link to powershell script: HyperV_Status.ps1

You will need to install the Power Shell script to the Hyper-V Server and update the Zabbix Agent configuration.

Settings for zabbix_agentd.conf:


UserParameter=hyperv.discover,powershell.exe -file "C:\Program Files\Zabbix\HyperV_Status.ps1"              
UserParameter=hyperv.check[*],powershell.exe -file "C:\Program Files\Zabbix\HyperV_Status.ps1" $1 "$2"



Example of CPU Usage Graph

Comments

Post a Comment