Use this Knowledge Script to monitor the number of virtual machine operations that are occurring across clusters and datacenters. You can also use this script to raise events when the number of Storage vMotions or vMotions exceed a specified threshold. This script generates data streams for Storage vMotion operations and vMotion operations.
NOTE:The VirtualCenter_VmOperations Knowledge Script is supported on vCenter 4.0 or later.
vSphere datacenters and clusters
By default, this script runs every 5 minutes.
Set the following parameters as needed:
Parameter |
How to Set It |
---|---|
General Settings |
|
Job Failure Notification |
|
Raise event when virtual machine operation metrics are not available? |
Select Yes to raise an event if virtual machine operation metrics are not available.The default is unselected. |
Event severity when virtual machine operation metrics are not available |
Set the event severity level, from 1 to 40, to indicate the importance of an event in which virtual machine operation metrics are not available. The default is 15. |
Event severity when AppManager failed to get metrics |
Set the event severity level, from 1 to 40, to indicate the importance of an event in which AppManager failed to retrieve virtual machine operation status from vCenter. The default is 15. |
Event severity when AppManager failed to log in |
Set the event severity level, from 1 to 40, to indicate the importance of an event in which AppManager failed to log in to vCenter. The default is 5. |
Event severity when VmOperations job fails unexpectedly |
Set the event severity level, from 1 to 40, to indicate the importance of an event in which the VmOperations job fails unexpectedly. The default is 5. |
Additional Settings |
|
Event Details |
|
Event detail format |
Select either HTML Table or Plain Text as the format for event detail. The default is HTML Table. |
Monitor Virtual Machine Operations |
|
Event Notification |
|
Raise event if Storage vMotions exceed the threshold? |
Select Yes to raise an event if the number of Storage vMotions exceeds the threshold you set. The default is unselected. |
Threshold -- Maximum Storage vMotions |
Specify the maximum number of Storage vMotions that can occur before raising an event. The default is 10. |
Event severity when Storage vMotions exceed the threshold |
Set the event severity level, from 1 to 40, to indicate the importance of an event in which the number of Storage vMotions exceeds the threshold. The default is 15. |
Raise event if vMotions exceed the threshold? |
Select Yes to raise an event if the number of vMotions exceeds the threshold you set. The default is unselected. |
Threshold -- Maximum vMotions |
Specify the maximum number of vMotions that can occur before raising an event. The default is 10. |
Event severity when vMotions exceed the threshold |
Set the event severity level, from 1 to 40, to indicate the importance of an event in which the number of vMotions exceeds the threshold. The default is 15. |
Data Collection |
|
Collect data for Storage vMotions? |
Select Yes to collect data about Storage vMotions for charts and reports. The default is Yes. |
Collect data for vMotions? |
Select Yes to collect data about vMotions for charts and reports. The default is Yes. |