4.17 LogicalDiskStats

Use this Knowledge Script to monitor logical disk I/O and busy statistics gathered from performance counter values in Performance Monitor:

  • Disk transfers per second

  • Disk reads per second

  • Disk writes per second

  • Disk operation time in milliseconds

  • Disk queue length

This script raises an event if a monitored value exceeds the threshold you specify.

Each time it runs, this script automatically monitors all logical disks on a server and all shared drives in a cluster. When this script runs on a cluster virtual server object, it monitors statistics for all shared drives that are active at the time. When this script runs on a physical Windows server, it monitors statistics for those drives that are not shared as part of a cluster, such as local fixed drives and removable drives.

NOTE:Because clustered virtual servers do not support maintenance mode, the Maintenance Mode option is unavailable for clustered virtual servers in AppManager.

You can choose to exclude any drive from monitoring or to monitor mount points configured on logical drives. Mount points must be configured as described in the following Microsoft Knowledge Base article: http://support.microsoft.com/kb/280297. Performance counter values are not created for mount points configured incorrectly. Therefore, this script raises an event when mounts points are not configured correctly, indicating an error when reading the disk.

This script ignores CD-ROMs, floppy drives, or other removable media whose size cannot be determined.

4.17.1 Resource Object

Logical disk object

4.17.2 Default Schedule

By default, this script runs every 30 minutes.

4.17.3 Setting Parameter Values

Set the following parameters as needed:

Parameter

How to Set It

Event Notification

Event severity when job fails

Set the event severity, from 1 to 40, to indicate the importance of an event in which the LogicalDiskStats job fails. The default is 15.

Logical Disk I/O

Raise event if disk transfers exceed threshold?

Select Yes to raise an event if the number disk transfers per second exceeds the threshold you set. The default is Yes.

Event severity when disk transfers exceed threshold

Set the event severity level, from 1 to 40, to indicate the importance of the event in which the number of times data is transferred on a disk exceeds the threshold you set. The default is 8.

Threshold - Maximum disk transfers per second

Specify the maximum number of disk transfers that can occur per second before an event is raised. The default is 80.

Raise event if disk reads exceed threshold?

Select Yes to raise an event if the number of disk reads per second exceeds the threshold you set. The default is Yes.

Event severity when disk reads exceed threshold

Set the event severity level, from 1 to 40, to indicate the importance of the event in which the number of times data is read from a disk exceeds the threshold you set. The default is 8.

Threshold - Maximum disk reads per second

Specify the maximum number of disk reads that can occur per second before an event is raised. The default is 50.

Raise event if disk writes exceed threshold?

Select Yes to raise an event if the number of disk writes per second exceeds the threshold you set. The default is Yes.

Event severity when disk writes exceed threshold

Set the event severity level, from 1 to 40, to indicate the importance of the event in which the number of times data is written to a disk exceeds the threshold you set. The default is 8.

Threshold - Maximum disk writes per second

Specify the maximum number of disk writes that can occur per second before an event is raised. The default is 50.

Logical Disk Busy

Raise event if disk operation time exceeds threshold?

Select Yes to raise an event if the length of time per disk operation exceeds the threshold you set. The default is Yes.

Event severity when disk operation time exceeds threshold

Set the event severity level, from 1 to 40, to indicate the importance of an event in which the length of time it takes for a disk operation to complete exceeds the threshold you set. The default is 5.

Threshold - Maximum disk operation time

Specify the maximum length of time that a disk operation can take to complete before an event is raised. The default is 100 milliseconds.

Raise event if disk queue length exceeds threshold?

Select Yes to raise an event if the number of requests in the disk queue exceeds the threshold you set. The default is Yes.

Event severity when disk queue length exceeds threshold

Set the event severity, from 1 to 40, to indicate the importance of an event in which the number of requests in the disk queue exceeds the threshold you set. The default is 5

Threshold - Maximum disk queue length

Specify the maximum number of requests that can be in queue before an event is raised. The default is 1 request.

Monitoring

Drives to exclude

Provide a comma-separated list of the drives you do not want to monitor. This script automatically monitors all drives except those listed in this parameter. The asterisk (*) is an acceptable wildcard.

For example, to exclude the C: drive and disks or mount points that begin with \crate, specify the following:

c:,e:\crate*

Monitor mount points?

Select Yes to allow the script to monitor mount points (mapped drives). The default is Yes.

Data Collection

Logical Disk I/O

Collect data for disk transfers per second?

Select Yes to collect data for charts and reports. When enabled, data collection returns the number of disk transfers per second for the monitoring period. The default is unselected.

Collect data for disk reads per second?

Select Yes to collect data for charts and reports. When enabled, data collection returns the number of disk reads per second for the monitoring period. The default is unselected.

Collect data for disk writes per second?

Select Yes to collect data for charts and reports. When enabled, data collection returns the number of disk writes per second for the monitoring period. The default is unselected.

Logical Disk Busy

Collect data for disk operation time?

Select Yes to collect data for charts and reports. When enabled, data collection returns the length of disk operations, in milliseconds, for the monitoring period. The default is unselected.

Collect data for disk queue length?

Select Yes to collect data for charts and reports. When enabled, data collection returns the number of requests in queue for the monitoring period. The default is unselected.