4.8 DatastoreUsage

Use this Knowledge Script to monitor the usage and free space of datastores. This script raises an event if the amount of available free space falls below threshold and percentage of datastore used exceeds the threshold. In addition, this script generates data streams for gigabytes or megabytes of available free space and for the percentage of datastore used.

4.8.1 Resource Object

vSphere datastore

4.8.2 Default Schedule

By default, this script runs every three hours.

4.8.3 Setting Parameter Values

Set the following parameters as needed:

Parameter

How to Set It

Event Notification

Raise event when free space falls below the threshold?

Select Yes to raise an event if the amount of available datastore free space falls below the threshold you set. The default is Yes.

Event severity when available free space falls below threshold

Set the event severity level, from 1 to 40, to indicate the importance of an event in which the amount of available datastore free space falls below the threshold. The default is 15.

Raise event when datastore percentage used exceeds the threshold?

Select Yes to raise an event if the percentage of datastore used exceeds the threshold you set. The default is Yes.

Event severity when percentage used exceeds the threshold

Set the event severity level, from 1 to 40, to indicate the importance an event in which the percentage of datastore used exceeds the threshold. The default is 15.

Raise event when datastore usage metrics are not available?

Select Yes to raise an event when datastore usage metrics are not available. The default is unselected.

Event severity when datastore usage metrics are not available

Set the event severity level, from 1 to 40, to indicate the importance of an event in which datastore usage 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 datastore metrics from vCenter. The default is 15.

Event severity when AppManager failed to log in

Set the 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 DataStoreUsage job fails unexpectedly

Set the severity level, from 1 to 40, to indicate the importance of an event in which the DataStoreUsage job fails unexpectedly. The default is 5.

Data Collection

Collect data for free space?

Select Yes to collect data about the amount of free space for charts and reports. The default is unselected.

Collect data for percentage used?

Select Yes to collect data about the percentage of datastore used for charts and reports. The default is unselected.

Monitoring

Monitor Datastore Free Space

Minimum threshold for datastore free space

Specify the minimum amount of datastore free space that must be available to prevent an event from being raised. The default is 500.

Use the Select datastore free space unit parameter to select GBytes or MBytes as the unit of measure for free space.

Select datastore free space unit

Select whether to measure the amount of datastore free space in GBytes or MBytes. The default is GBytes.

Maximum threshold for datastore space percentage used

Specify the maximum percentage of datastore that can be used before an event is raised. The default is 90%.