Greetings All,
I am using Zabbix to monitor the state of my VM Guests in Hyper-V and watch use Zabbix to restart any guest that is stopped. I tried using "powershell start-vm -Name {#VM.NAME}" but it does not work, in the log I get " 1552:20210725:071624.122 Executing command 'powershell start-vm -Name "{#VM.NAME}"'". How do I pass the guest name to the PowerShell command? I looked in the documentation and tried following Zabbix Remote Commands – Zabbix Blog but I still can't get it to work. Many thanks in advance for any help.
v/r
Chris
I am using Zabbix to monitor the state of my VM Guests in Hyper-V and watch use Zabbix to restart any guest that is stopped. I tried using "powershell start-vm -Name {#VM.NAME}" but it does not work, in the log I get " 1552:20210725:071624.122 Executing command 'powershell start-vm -Name "{#VM.NAME}"'". How do I pass the guest name to the PowerShell command? I looked in the documentation and tried following Zabbix Remote Commands – Zabbix Blog but I still can't get it to work. Many thanks in advance for any help.
v/r
Chris