4.16 HostMonitor

This Knowledge Script is no longer supported as of AppManager for VMware vSphere version 7.7. It should not be used and should be deleted. The functionality of the script has been replaced by the following scripts: HostCPUUsage, HostMemoryUsage, HostDiskIO, and HostNetworkIO.

Use this Knowledge Script to monitor the following metrics for a vCenter host:

  • Percentage of host CPU usage and host CPU used

  • Disk reads/writes in MB/sec

  • Percentage of memory usage, memory swap used, and memory balloon used

  • Network data received/transmitted in Mbits/sec

Using this Knowledge Script rather than a combination of individual Knowledge Scripts reduces the system overhead.

4.16.1 Resource Object

vCenter-monitored host. For example, ESX server.

4.16.2 Default Schedule

By default, this script runs every 15 minutes.

4.16.3 Setting Parameter Values

Set the following parameters as needed:

Description

How to Set It

Event Notification

CPU Notification

Raise event when the percentage of CPU usage exceeds the threshold?

Select Yes to raise an event when the percentage of CPU usage exceeds the threshold you set. The default is Yes.

CPU usage represents the amount of CPU in use during the monitoring interval.

Event severity when 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 exceeds the threshold. The default is 12.

Raise event when the percentage of CPU used exceeds the threshold?

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

CPU used represents the amount of time CPU was used during the monitoring interval.

Event severity when CPU used exceeds the threshold

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

Disk I/O Notification

Raise event when disk reads exceed the threshold?

Select Yes to raise an event if disk reads exceed the threshold you set. The default is Yes.

Event severity when disk reads exceed the threshold

Set the event severity level, from 1 to 40, to indicate the importance of an event in which disk reads exceed the threshold. The default is 12.

Raise event when disk writes exceed the threshold?

Select Yes to raise an event if disk writes exceed 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 exceed the threshold. The default is 12.

Memory Notification

Raise event when the percentage of memory usage exceeds the threshold?

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

Event severity when memory usage exceeds the threshold

Set the event severity level, from 1 to 40, to indicate the importance of an event in which memory usage exceeds the threshold event. The default is 12.

Raise event when the percentage of memory swap used exceeds the threshold?

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

Event severity when memory swap used exceeds the threshold

Set the event severity level, from 1 to 40, to indicate the severity of an event in which memory swap used exceeds the threshold. The default is 12.

Raise event when the percentage of memory balloon used exceeds the threshold?

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

Event severity when memory balloon used exceeds the threshold

Set the event severity level, from 1 to 40, to indicate the severity of an event in which memory balloon used exceeds the threshold. The default is 12.

Network I/O Notification

Raise event when network data received exceeds the threshold?

Select Yes to raise an event if network data received exceeds the threshold you set. The default is Yes.

Event severity when network data received exceeds the threshold

Set the event severity level, from 1 to 40, to indicate the importance of an event in which network data received exceeds the threshold. The default is 12.

Raise event when network data transmitted exceeds the threshold?

Select Yes to raise an event if network data transmitted exceeds the threshold you set. The default is Yes.

Event severity when network data transmitted exceeds the threshold

Set the event severity level, from 1 to 40, to indicate the importance of an event in which network data transmitted exceeds the threshold. The default is 12.

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 CPU 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 HostMonitor job fails unexpectedly

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

Data Collection

CPU Data Collection

Collect data for CPU usage?

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

Collect data for individual CPU usage?

Select Yes to collect CPU usage data for individual CPU. The default is unselected.

Collect data for host CPU used?

Select Yes to collect host CPU used data for charts and reports. The default is unselected.

Collect data for individual CPU used?

Select Yes to collect individual CPU used data for charts and reports. The default is unselected.

Disk I/O Data Collection

Collect data for disk reads?

Select Yes to collect data about disk reads for charts and reports. The default is unselected.

Collect data for individual disk reads?

Select Yes to collect data about individual disk reads for charts and reports. The default is unselected.

Collect data for disk writes?

Select Yes to collect data about disk writes for charts and reports. The default is unselected.

Collect data for individual disk writes?

Select Yes to collect data about individual disk writes for charts and reports. The default is unselected.

Memory Data Collection

Collect data for memory usage?

Select Yes to collect data about memory usage for charts and reports. The default is unselected.

Collect data for memory swap used?

Select Yes to collect data about memory swap used for charts and reports. The default is unselected.

Collect data for memory balloon used?

Select Yes to collect data about memory balloon used for charts and reports. The default is unselected.

Network I/O Data Collection

Collect data for network data received?

Select Yes to collect data about network data received for charts and reports. The default is unselected.

Collect data for network data transmitted?

Select Yes to collect data about network data transmitted for charts and reports. The default is unselected.

Monitoring

CPU Monitoring

Maximum threshold for CPU usage (%)

Specify the maximum percentage of CPU usage that can occur before an event is raised. The default is 80%.

Maximum threshold for CPU used (%)

Specify the maximum percentage of time that CPU that can be used before an event is raised. The default is 80%.

Disk IO Monitoring

Maximum threshold for disk reads (Mbytes/sec)

Specify the maximum amount of disk reads that can occur before an event is raised. The default is 2 megabytes per second.

Maximum threshold for disk writes (Mbytes/sec)

Specify the maximum amount of disk writes that can occur before an event is raised. The default is 2 megabytes per second.

Memory Monitoring

Maximum threshold for memory usage (%)

Specify the maximum percentage of memory usage that can occur before an event is raised. The default is 80%.

Maximum threshold for memory swap used (%)

Specify the maximum percentage of memory swap that can be used before an event is raised. The default is 2%.

Maximum threshold for memory balloon (%)

Specify the maximum percentage of memory balloon that can be used before an event is raised. The default is 2%.

Network I/O Monitoring

Maximum threshold for network data received (Mbits/sec)

Specify the maximum amount of network data received that can occur before an event is raised. The default is 2 Mbits per second.

Maximum threshold for network data transmitted (Mbits/sec)

Specify the maximum amount of network data transmitted that can occur before an event is raised. The default is 2 Mbits per second.