Hi, I'm trying to figure out a way to see if Kaseya can create an alarm for us on Hyper-V based Windows 2012 servers and hyper-v replicas. What i'd like to do is have it run a powershell command, and if it returns any results, log the results and trigger an alarm to send an email.
The command to be run on the servers is:
get-vm | select-object Name, ReplicationState, ReplicationHealth | where {$_.replicationstate -ne "Disabled" -and $_.replicationhealth -ne "Normal"}