4.28 VmConnected

Use this Knowledge Script to monitor changes in the connection status of virtual machines to vCenter. This script raises an event if a virtual machine is disconnected or reconnected.

NOTE:

  • If the parent host of the monitored virtual machine is in maintenance mode, this Knowledge Script will not generate events.

  • Using this script and other VirtualCenter_Vm* scripts to monitor a large number of virtual machines at the same time might cause the jobs to fail. If the jobs fail on a regular basis, consider running the VirtualCenter_Vm* scripts on fewer virtual machines.

4.28.1 Resource Object

vSphere virtual machine

4.28.2 Default Schedule

By default, this script runs every day at 15 minute intervals starting at 12:01 AM and ending at 11:59 PM. If you start the job after the scheduled starting time, the script runs at the time of the next scheduled interval. For example, if you start the job at 12:10 AM, it runs for the first time at 12:16 AM.

NOTE:If you are running this script as part of the Recommended Knowledge Script Groups, do not change the schedule. The schedules for the recommended scripts are staggered to lessen the impact on CPU utilization when you run the KSG.

4.28.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 virtual machine’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 virtual machine’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 VmConnected job fails unexpectedly

Set the event severity level, from 1 to 40, to indicate the importance of an event in which the VmConnected 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 a virtual machine is disconnected

Select Yes to raise an event when a connected virtual machine is disconnected from vCenter. The default is Yes.

Event severity when virtual machine is disconnected

Set the event severity level, from 1 to 40, to indicate the importance of an event in which a virtual machine is disconnected from vCenter. The default is 15.

Raise event when a virtual machine is reconnected

Select Yes to raise an event when a disconnected virtual machine is reconnected to vCenter. The default is Yes.

Event severity when virtual machine is reconnected

Set the event severity level, from 1 to 40, to indicate the importance of an event in which a virtual machine is reconnected to vCenter. The default is 15.