I have a discovery rule to discovery all virtual machines on a KVM host. The discovered virtual machines are stored in macro {#DOMAINNAME}.
I can monitor those virtual machines status, and see triggered alarm when any virtual machine not in running state.
Now, what I want is to execute remote command on host, like "sudo virsh start {#DOMAINNAME}" to bring virtual machine back to active state when the vm is non-active. While it seems the remote command does not recognize macro.
Can anybody help on this?
Thanks very much!
Anthony
I can monitor those virtual machines status, and see triggered alarm when any virtual machine not in running state.
Now, what I want is to execute remote command on host, like "sudo virsh start {#DOMAINNAME}" to bring virtual machine back to active state when the vm is non-active. While it seems the remote command does not recognize macro.
Can anybody help on this?
Thanks very much!
Anthony
Comment