Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 30534

PowerShell Command to Trigger Alarm

$
0
0

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"}


Viewing all articles
Browse latest Browse all 30534

Trending Articles