I've read around & have found *similar* issues but nothing regarding this particular issue.
We've got a number of Hypervisor Hosts: 1,2,3,etc
We have Zabbix Agent installed on each Guest VM as well.
We have a Host Group set up for each Hypervisor Host. With naming like, "Host 1 VMs"
We use this for maintenance, tagging and other reasons.
We are currently adding each Guest VM to each Hypervisor Host Group manually, which is pretty time-consuming.
I know through Actions you can dynamically add Hosts to Host Groups, but I am not currently able to identify a variable that would allow me to dynamically add each Guest VM to their respective Hypervisor Host Group. Since Guest VMs can't *see* which Hypervisor Host they are running on, typically.
Edit: With HyperV on the Guest VM it does appear there's a Registry Key that shows which Host it's running on. Is it possible to create a Zabbix Action to read this Registry key?
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Vir tual Machine\Guest\Parameters\Hostname
Example:
Install Zabbix agent on "Guest VM1", "Guest VM2". Each resides on a different Hypervisor Host.
Guest VM1 & Guest VM2 show up in Zabbix as their own Hosts, but how do I set up an action to identify that this is a Guest VM, one of which is running on "Hypervisor Host 1" & "Hypervisor Host 2", and add it to the respective Host Groups?
I hope that makes sense, and that someone may find this interesting or have some direction otherwise I'll keep at it!
Thanks!
We've got a number of Hypervisor Hosts: 1,2,3,etc
We have Zabbix Agent installed on each Guest VM as well.
We have a Host Group set up for each Hypervisor Host. With naming like, "Host 1 VMs"
We use this for maintenance, tagging and other reasons.
We are currently adding each Guest VM to each Hypervisor Host Group manually, which is pretty time-consuming.
I know through Actions you can dynamically add Hosts to Host Groups, but I am not currently able to identify a variable that would allow me to dynamically add each Guest VM to their respective Hypervisor Host Group. Since Guest VMs can't *see* which Hypervisor Host they are running on, typically.
Edit: With HyperV on the Guest VM it does appear there's a Registry Key that shows which Host it's running on. Is it possible to create a Zabbix Action to read this Registry key?
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Vir tual Machine\Guest\Parameters\Hostname
Example:
Install Zabbix agent on "Guest VM1", "Guest VM2". Each resides on a different Hypervisor Host.
Guest VM1 & Guest VM2 show up in Zabbix as their own Hosts, but how do I set up an action to identify that this is a Guest VM, one of which is running on "Hypervisor Host 1" & "Hypervisor Host 2", and add it to the respective Host Groups?
I hope that makes sense, and that someone may find this interesting or have some direction otherwise I'll keep at it!
Thanks!
Comment