Skip to content

VMware host (vmware_host) ​

Reads one ESXi host through the vSphere API with a read-only account, directly or through vCenter: whether it is connected, the health vSphere gives it, CPU use, memory use, uptime and whether it is in maintenance mode. Set up the account and the certificate as in VMware vSphere.

What it looks like ​

The page of a vmware_host sensor in the light theme

The sensor's page after a few polls, reading a free ESXi 8.0 host directly. In the dark theme: the sensor's page. The form for adding it, with its parameters filled in: light, dark.

Parameters ​

ParameterDefaultMeaning
hostnoneThe host's name as vSphere lists it. Leave it out when the device is an ESXi host, which has only itself. Against vCenter it is required, because vCenter holds many; the name is the one the host was added with, often its address or its DNS name.
port443API port.
verify_tlstrueCheck the API certificate, see the certificate.
tls_fingerprintnonePin the API certificate.

Channels ​

KeyNameUnitDefault limits
connectedConnectednoneDown when not connected (0)
overall_statusHealthnone0 green, 1 yellow (warning), 2 red (down), 3 gray (warning)
maintenance_modeMaintenance modenonenone
cpu_pctCPU%warning above 85, error above 95
cpu_used_mhzCPU usedMHznone
mem_used_pctMemory used%warning above 90, error above 97
mem_used_bytes, mem_total_bytesMemoryBnone
uptime_sUptimesnone
api_msAPI response timemsnone

Per poll the sensor reads the service content, logs in, lists the hosts' names, reads the properties of the one it wants and logs out. CPU is the host's CPU use in MHz over the total of its cores (cores times clock speed), as vSphere's own overview shows it. Memory is what vSphere reports as the host's consumed memory over its physical memory. Health is the overall status vSphere computes from its alarms and hardware state: yellow makes the sensor a warning, red makes it Down, and so does a host that is not connected (disconnected, or not responding in vCenter). A host that is not connected keeps no live figures in vSphere, so its CPU, memory and uptime are unknown. A host in maintenance mode is reported in the message and in its channel and does not change the health: use a maintenance window for planned work. Suggested interval 60 seconds.

The sensor does not read the host's hardware sensors (fans, power supplies, temperatures); vSphere's overall status already folds the failures of those into red or yellow.

AGPL-3.0-only