4.25 VirtualCenterCPUUsage

Use this Knowledge Script to monitor the CPU usage of the vCenter process and total CPU usage on the computer hosting the vCenter. This script raises an event when CPU usage exceeds the threshold you set. This script monitors and collects data for the following performance metric:

  • CPU usage - Amount of actively used virtual CPU, as a percentage of total available CPU.

NOTE:When you run this script on a proxy agent computer to remotely monitor vCenter, this script will not monitor the vCenter services or collect any data.

4.25.1 Resource Object

vCenter server

4.25.2 Default Schedule

By default, this script runs every 10 minutes.

4.25.3 Setting Parameter Values

Set the following parameters as needed:

Parameter

How to Set It

Event Notification

Raise event when VirtualCenter CPU usage exceeds the threshold?

Select Yes to raise an event if vCenter CPU usage exceeds the threshold you set. The default is Yes.

Event severity when VirtualCenter CPU usage exceeds the threshold

Set the event severity level, from 1 to 40, to indicate the importance of an event in which CPU usage for the vCenter process exceeds the threshold. The default is 15.

Raise event when total host CPU usage exceeds the threshold?

Select Yes to raise an event if total CPU usage on the host computer exceeds the threshold you set. The default is Yes.

Event severity when total host CPU usage exceeds the threshold

Set the event severity level, from 1 to 40, to indicate the importance of an event in which total CPU usage on the host computer exceeds the threshold. The default is 15.

Event severity when VirtualCenter CPUUsage job fails unexpectedly

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

Data Collection

Collect data for VirtualCenter CPU usage?

Select Yes to collect data about vCenter CPU usage charts and reports. The default is unselected.

Collect data for total host CPU usage?

Select Yes to collect data about total CPU usage on the host for charts and reports. The default is unselected.

Monitoring

Maximum threshold for VirtualCenter CPU usage (%)

Specify the maximum amount of CPU usage that can occur for the vCenter process before an event is raised. The default is 60%.

Maximum threshold for total host CPU usage (%)

Specify the maximum amount of CPU usage that can occur on the host computer before an event is raised. The default is 95%.