PowerShell Logo Small

Add-ClusterVMMonitoredItem



This is the built-in help made by Microsoft for the command 'Add-ClusterVMMonitoredItem', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Configures monitoring for a service or an Event Tracing for Windows (ETW) event so that it is monitored on a virtual machine.

SYNTAX


Add-ClusterVMMonitoredItem [[-VirtualMachine] <String>] [-Cluster <String>] [-EventId <Int32>] [-EventLog <String>] [-EventSource <String>] [-InputObject <PSObject>]
[-OverrideServiceRecoveryActions] [-Service <StringCollection>] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Add-ClusterVMMonitoredItem cmdlet configures monitoring for a service or an Event Tracing for Windows (ETW) event so that it is monitored on a virtual machine. If the
service fails or the event occurs, then the system responds by taking an action based on the failover configuration for the virtual machine resource. For example, the
configuration might specify that the virtual machine be restarted.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/p/?LinkId=321021
Get-ClusterVMMonitoredItem
Remove-ClusterVMMonitoredItem
Reset-ClusterVMMonitoredState

REMARKS

<

Examples


Example 1

PS C:\>Add-ClusterVMMonitoredItem –VirtualMachine test-VM11 -EventLog "Microsoft-Windows-FailoverClustering-Manager/Admin" -EventSource
"Microsoft-Windows-FailoverClustering-Manager" -EventId 4708
Name
----
Microsoft-Windows-FailoverClustering-Manager+Admin,Microsoft-Windows-FailoverClustering-Manager,4708



This example adds monitoring for the ETW event ID 4708.




Example 2

PS C:\>Add-ClusterVMMonitoredItem –VirtualMachine test-VM11 -Service spooler
Name
----
Spooler



This example configures monitoring for the print spooler service.