4.18 HostUptime

Use this Knowledge Script to monitor host uptime in days. Host uptime is the time elapsed since the last system startup. This script raises an event when a host is rebooted, and it collects data for host uptime.

NOTE:

  • When a host goes into maintenance mode all VirtualCenter_Host* Knowledge Scripts, except for the VirtualCenter_HostConnected Knowledge Script, suppress events and data.

  • In rare situations, queries to the ESX or ESXi host might fail with timeouts because the ESX or ESXi host stops responding. This issue affects all VirtualCenter_Host* Knowledge Scripts. You can work around this issue by restarting the management service on the ESX or ESXi host.

4.18.1 Resource Object

vSphere ESX or ESXi host

4.18.2 Default Schedule

By default, this script runs every 5 minutes.

4.18.3 Setting Parameter Values

Set the following parameters as needed:

Parameter

How to Set It

General Settings

Job Failure Notification

Raise event when uptime metrics are not available?

Select Yes to raise an event if uptime metrics are not available. The default is unselected.

Event severity when uptime metrics are not available

Set the event severity level, from 1 to 40, to indicate the importance of an event in which uptime 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 host uptime status 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 HostUptime job fails unexpectedly

Set the event severity level, from 1 to 40, to indicate the importance of an event in which the HostUptime 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 Uptime

Event Notification

Raise event if host server reboots?

Select Yes to raise an event if the host server reboots. The default is Yes.

Event severity if host server reboots

Set the event severity level, from 1 to 40, to indicate the importance of an event in which the host server reboots. The default is 15.

Raise event if host reboots while in VMware maintenance mode?

Select Yes to raise an event if the host reboots while in VMware maintenance mode. The default is unselected.

Data Collection

Collect data for uptime?

Select Yes to collect data for graphs and reports. When enabled, data collection returns a datastream for the host uptime in days. The default is unselected.