5.02021-11-21T21:26:18ZTemplates - ComunidadeVirt VMware Hypervisor ESXi - Andre BelloVirt VMware Hypervisor ESXi - Andre Bello## Overview
Contact: [andreantunes.si@gmail.com](mailto:andreantunes.si@gmail.com)
Skype: andreantunes.si
Incluied: Datastore free, free %, Total
Memory: Used memory, Used memory %, Total Memory,
*How to obtain ESXi UUID*
0. You need to enable MOB vib, esxcli does not seems to provide the valid uuid for this.
1. enable MOB vib : Go to you're vsphere Advanced Settings, Config, Hostagent, plugins, solo, check "Config.HostAgent.plugins.solo.enableMob"
2. Browse to https://esxi.hostname/mob/?moid=ha-host&doPath=hardware.systemInfo
3. disable MOB vib again (uncheck Config.HostAgent.plugins.solo.enableMob)
Your HOSTNAME will be your UUID
Else:
**esxcfg-info -u**
Used Macros:
{$USERNAME} -> User connect ESxi
{$PASSWORD} Password access to Esxi
{$URL} - https://Your ip Esxi/sdk
## Author
Andre Bello
Templates - ComunidadeCPUDatastoreGeneralHardwareMemoryNetwork- Cluster nameSIMPLEvmware.hv.cluster.name[{$URL},{HOST.HOST}]6000CHAR{$USERNAME}{$PASSWORD}Cluster name of the guest VM.General
- CPU usageSIMPLEvmware.hv.cpu.usage[{$URL},{HOST.HOST}]600Hz{$USERNAME}{$PASSWORD}Aggregated CPU usage across all cores on the host in Hz. This is only available if the host is connected.CPU
- Full nameSIMPLEvmware.hv.fullname[{$URL},{HOST.HOST}]6000CHAR{$USERNAME}{$PASSWORD}The complete product name, including the version information.General
- CPU frequencySIMPLEvmware.hv.hw.cpu.freq[{$URL},{HOST.HOST}]600Hz{$USERNAME}{$PASSWORD}The speed of the CPU cores. This is an average value if there are multiple speeds. The product of CPU frequency and number of cores is approximately equal to the sum of the MHz for all the individual cores on the host.CPUHardware
- CPU modelSIMPLEvmware.hv.hw.cpu.model[{$URL},{HOST.HOST}]6000CHAR{$USERNAME}{$PASSWORD}The CPU model.CPUHardware
- CPU coresSIMPLEvmware.hv.hw.cpu.num[{$URL},{HOST.HOST}]600{$USERNAME}{$PASSWORD}Number of physical CPU cores on the host. Physical CPU cores are the processors contained by a CPU package.CPUHardware
- CPU threadsSIMPLEvmware.hv.hw.cpu.threads[{$URL},{HOST.HOST}]600{$USERNAME}{$PASSWORD}Number of physical CPU threads on the host.CPUHardware
- Total MemorySIMPLEvmware.hv.hw.memory[{$URL},{HOST.HOST}]600B{$USERNAME}{$PASSWORD}Physical memory usage on the host.Memory
- ModelSIMPLEvmware.hv.hw.model[{$URL},{HOST.HOST}]6000CHAR{$USERNAME}{$PASSWORD}The system model identification.Hardware
- Bios UUIDSIMPLEvmware.hv.hw.uuid[{$URL},{HOST.HOST}]6000CHAR{$USERNAME}{$PASSWORD}The hardware BIOS identification.Hardware
- VendorSIMPLEvmware.hv.hw.vendor[{$URL},{HOST.HOST}]6000CHAR{$USERNAME}{$PASSWORD}The hardware vendor identification.Hardware
- Used memory %CALCULATEDvmware.hv.memory.pused[{$URL},{HOST.HOST}]600FLOAT%last("vmware.hv.memory.used[{$URL},{HOST.HOST}]") * 100 / last("vmware.hv.hw.memory[{$URL},{HOST.HOST}]")Physical memory usage on the host.Memory{last(300)}>95Memory usage is above 95%HIGH
- Ballooned memorySIMPLEvmware.hv.memory.size.ballooned[{$URL},{HOST.HOST}]600B{$USERNAME}{$PASSWORD}The amount of guest physical memory that is currently reclaimed through the balloon driver. Sum of all guest VMs.Memory
- Used MemorySIMPLEvmware.hv.memory.used[{$URL},{HOST.HOST}]600B{$USERNAME}{$PASSWORD}Physical memory usage on the host.Memory
- Number of bytes receivedSIMPLEvmware.hv.network.in[{$URL},{HOST.HOST},bps]600Bps{$USERNAME}{$PASSWORD}Network
- Number of bytes transmittedSIMPLEvmware.hv.network.out[{$URL},{HOST.HOST},bps]600Bps{$USERNAME}{$PASSWORD}Network
- Overall statusSIMPLEvmware.hv.status[{$URL},{HOST.HOST}]600{$USERNAME}{$PASSWORD}The overall alarm status of the host: gray - unknown, ok, red - it has a problem, yellow - it might have a problem.GeneralVMware status{last()}<>1Overall status = {ITEM.VALUE}HIGH
- UptimeSIMPLEvmware.hv.uptime[{$URL},{HOST.HOST}]600uptime{$USERNAME}{$PASSWORD}System uptime.General
- VersionSIMPLEvmware.hv.version[{$URL},{HOST.HOST}]6000CHAR{$USERNAME}{$PASSWORD}Dot-separated version string.General
- Number of guest VMsSIMPLEvmware.hv.vm.num[{$URL},{HOST.HOST}]600{$USERNAME}{$PASSWORD}Number of guest virtual machines.General
Datastore discoverySIMPLEvmware.hv.datastore.discovery[{$URL},{HOST.HOST}]86400{$USERNAME}{$PASSWORD}0Average read latency of the datastore $3SIMPLEvmware.hv.datastore.read[{$URL},{HOST.HOST},{#DATASTORE},latency]600{$USERNAME}{$PASSWORD}DatastoreDatastore Free $3SIMPLEvmware.hv.datastore.size[{$URL},{HOST.HOST},{#DATASTORE},free]600B{$USERNAME}{$PASSWORD}DatastoreDatastore Free % $3SIMPLEvmware.hv.datastore.size[{$URL},{HOST.HOST},{#DATASTORE},pfree]600FLOAT%{$USERNAME}{$PASSWORD}Datastore{last()}<15{#DATASTORE} is 85% UsedAVERAGE{#DATASTORE} is 90% Used{Virt VMware Hypervisor ESXi - Andre Bello:vmware.hv.datastore.size[{$URL},{HOST.HOST},{#DATASTORE},pfree].last()}<10{#DATASTORE} is 95% Used{Virt VMware Hypervisor ESXi - Andre Bello:vmware.hv.datastore.size[{$URL},{HOST.HOST},{#DATASTORE},pfree].last()}<5{last()}<10{#DATASTORE} is 90% UsedHIGH{#DATASTORE} is 95% Used{Virt VMware Hypervisor ESXi - Andre Bello:vmware.hv.datastore.size[{$URL},{HOST.HOST},{#DATASTORE},pfree].last()}<5{last()}<5{#DATASTORE} is 95% UsedDISASTERDatastore Total % $3SIMPLEvmware.hv.datastore.size[{$URL},{HOST.HOST},{#DATASTORE},total]600B{$USERNAME}{$PASSWORD}DatastoreAverage write latency of the datastore $3SIMPLEvmware.hv.datastore.write[{$URL},{HOST.HOST},{#DATASTORE},latency]600{$USERNAME}{$PASSWORD}DatastoreVMware status0gray1green2yellow3red