4.10 HostConnected

Use this Knowledge Script to monitor changes in the connection status of hosts to vCenter, such as when a host is connected to the vCenter server or when a host goes into maintenance mode from normal mode.

This script raises an event if a host is disconnected or reconnected, or if a host goes into or comes out of maintenance mode. This script will not generate host disconnect or reconnect events while the host is in maintenance mode.

4.10.1 Resource Object

vSphere ESX or ESXi host

4.10.2 Default Schedule

By default, this script runs every 15 minutes.

4.10.3 Setting Parameter Values

Set the following parameters as needed:

Parameter

How to Set It

General Settings

Job Failure Notification

Raise event when status information is not available?

Select Yes to raise an event when information about the host’s connection status is not available. The default is unselected.

Event severity when status information is not available

Set the event severity level, from 1 to 40, to indicate the importance of an event in which information about the host’s connection status is 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 HostConnected job fails unexpectedly

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

Additional Settings

Event Details

Event detail format

Select either HTML Table or Plain Text as the format for event detail. The default is HTML Table.

Monitor Connection Status

Event Notification

Raise event when host enters disconnected state?

Select Yes to raise an event when a host enters a disconnected state. The default is Yes.

NOTE:The script will not generate disconnect events if the host is in maintenance mode.

Event severity when host enters disconnected state

Set the event severity level, from 1 to 40, to indicate the importance of an event in which a host enters a disconnected state The default is 15.

Raise event when host is in maintenance mode?

Select Yes to raise an event when a connected host goes into maintenance mode. The default is Yes.

Event severity when host in maintenance mode

Set the event severity level, from 1 to 40, to indicate the importance of an event in which a host goes into maintenance mode. The default is 15.

Raise event when host is out of maintenance mode?

Select Yes to raise an event when a connected host comes out of maintenance mode. The default is Yes.

Event severity when host out of maintenance mode

Set the event severity level, from 1 to 40, to indicate the importance of an event in which a host comes out of maintenance mode. The default is 15.

Raise event when host enters connected state?

Select Yes to raise an event when a host enters a connected state. The default is Yes.

NOTE:The script will not generate reconnect events if the host is in maintenance mode.

Event severity when host enters connected state

Set the event severity level, from 1 to 40, to indicate the importance of an event in which a host enters a connected state. The default is 25.

Data Collection

Collect data for host availability?

Select Yes to collect host availability data for charts and reports. When enabled, data collection returns 100 when a host is available and 0 when a host is unavailable. The default is unselected.

Collect data for host connectivity?

Select Yes to collect host connectivity data for charts and reports. When enabled, data collection returns 100 when a host is connected and 0 when a host is not connected. The default is unselected.