Use this Knowledge Script to monitor disk reads/writes for a virtual machine. This script raises an event if the rate of reads/writes exceeds the threshold you set. This script monitors and collects data for the following performance metrics:
Disk read rate - Rate at which data is read from each virtual disk on the virtual machine
Disk write rate - Rate at which data is written to each virtual disk on the virtual machine
Total disk I/O for the virtual disk
NOTE:
If the parent host of the monitored virtual machine is in maintenance mode, this Knowledge Script will not generate events.
Using this script and other VirtualCenter_Vm* scripts to monitor a large number of virtual machines at the same time might cause the jobs to fail. If the jobs fail on a regular basis, consider running the VirtualCenter_Vm* scripts on fewer virtual machines.
vSphere virtual machine
By default, this script runs every day at 15 minute intervals starting at 12:07 AM and ending at 11:59 PM. If you start the job after the scheduled starting time, the script runs at the time of the next scheduled interval. For example, if you start the job at 12:10 AM, it runs for the first time at 12:22 AM.
NOTE:If you are running this script as part of the Recommended Knowledge Script Groups, do not change the schedule. The schedules for the recommended scripts are staggered to lessen the impact on CPU utilization when you run the KSG.
Set the following parameters as needed:
Parameter |
How to Set It |
---|---|
Event Notification |
|
Raise event when total disk IO exceeds the threshold? |
Select Yes to raise an event when total disk IO exceeds the threshold you set. The default is unselected. |
Event severity when total disk IO exceeds the threshold |
Set the event severity level, from 1 to 40, to indicate the importance of an event in which total disk IO exceeds the threshold you set. The default is 15 |
Raise event when average disk reads exceed the threshold? |
Select Yes to raise an event when average disk reads exceed the threshold you set. The default is Yes. |
Event severity when average disk reads exceed the threshold |
Set the event severity level, from 1 to 40, to indicate the importance of an event in which average disk reads exceed the threshold. The default is 15. |
Raise event when disk writes exceed the threshold? |
Select Yes to raise an event if the rate of disk writes exceeds the threshold you set. The default is Yes. |
Event severity when disk writes exceed the threshold |
Set the event severity level, from 1 to 40, to indicate the importance of an event in which disk writes exceeds the threshold. The default is 15. |
Raise event when disk I/O metrics are not available? |
Select Yes to raise an event if disk I/O metrics are not available. The default is unselected. |
Event severity when disk I/O metrics are not available |
Set the event severity level, from 1 to 40, to indicate the importance of an event in which disk I/O 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 metrics 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 VmDiskIO job fails unexpectedly. |
Set the event severity level, from 1 to 40, to indicate the importance of an event in which the VmDiskIO job fails unexpectedly. The default is 5. |
Data Collection |
|
Collect data for total disk IO? |
Select Yes to collect data about total disk IO for charts and reports. The default is unselected. |
Collect data for average disk reads? |
Select Yes to collect data about average disk reads for charts and reports. The default is unselected. |
Collect data for average disk writes? |
Select Yes to collect data about average disk writes for charts and reports. The default is unselected. |
Monitoring |
|
Maximum threshold for disk IO |
Specify the maximum rate at which disk IO can occur before an event is raised. The default is 20 megabytes per second. |
Maximum threshold for average disk reads |
Specify the maximum rate at which average disk reads can occur before an event is raised. The default is 1 megabyte per second. |
Maximum threshold for average disk writes |
Specify the maximum rate at which average disk writes can occur before an event is raised. The default is 1 megabyte per second. |